blob: 1c825f94c9f0fa87d5a127dafbc6f386efece7a4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
/*
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();
}
|