Your IP : 3.137.221.114
/* We test that a 8bpp TGA file will be gracefully rejected by gdImageCreateFromTga(). */ #include <stdio.h> #include "gd.h" #include "gdtest.h" int main() { gdImagePtr im; FILE *fp = gdTestFileOpen("tga/bug00247a.tga"); im = gdImageCreateFromTga(fp); gdTestAssert(im == NULL); fclose(fp); return gdNumFailures(); } |