1
/* $Id: bug00086.c,v 1.1.2.1 2007/05/17 14:38:24 pajoye Exp $ */
2
/* id: gdbad3.c, Xavier Roche, May. 2007 */
3
/* gcc gdbad3.c -o bad -lgd && ./bad */
9
static const unsigned char pngdata[93];
16
if ( ( im = gdImageCreateFromPngPtr(93, (char*) &pngdata[0]) ) == NULL) {
17
fprintf(stderr, "success!\n");
20
fprintf(stderr, "failed!\n");
28
static const unsigned char pngdata[93] = {137,80,78,71,13,10,26,10,0,0,
29
0,13,73,72,68,82,0,0,0,120,0,0,0,131,8,6,0,0,0,70,49,223,8,0,0,0,6,98,
30
75,71,68,0,255,0,255,0,255,160,189,167,147,0,0,0,9,112,72,89,115,0,0,92,
31
70,0,0,92,70,1,20,148,67,65,0,0,0,9,118,112,65,103,0,0,0,120,0,0,0,131,