diff options
Diffstat (limited to 'Build/source/libs/gd/libgd-2.1.1/tests/gif/bug00060.c')
-rw-r--r-- | Build/source/libs/gd/libgd-2.1.1/tests/gif/bug00060.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/Build/source/libs/gd/libgd-2.1.1/tests/gif/bug00060.c b/Build/source/libs/gd/libgd-2.1.1/tests/gif/bug00060.c new file mode 100644 index 00000000000..721d3bc401d --- /dev/null +++ b/Build/source/libs/gd/libgd-2.1.1/tests/gif/bug00060.c @@ -0,0 +1,24 @@ +#include <stdio.h> +#include "gd.h" +#include "gdtest.h" + + +int main() +{ + gdImagePtr im; + FILE *fp; + char path[1024]; + + sprintf(path, "%s/gif/bug00060.gif", GDTEST_TOP_DIR); + fp = fopen(path, "rb"); + + if (!fp) { + printf("cannot open <%s>\n", path); + return -1; + } + + im = gdImageCreateFromGif(fp); + fclose(fp); + gdImageDestroy(im); + return 0; +} |