diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/ISSUES | 2 | ||||
-rw-r--r-- | src/gd_png.c | 2 |
2 files changed, 3 insertions, 1 deletions
@@ -29,3 +29,5 @@ GDBUGS NEWS #10, gdImageFilledEllipse does not respect transparency #11, gdImageCreateFromPng* possible crash with empty file (Thanks Antony Dovgal to have catched it) +#12, gdImageCreateFromPngCrx, initialize the signature buffer not the infile + CTX (Takeshi Abe) diff --git a/src/gd_png.c b/src/gd_png.c index 8d2fb81..4a957fd 100644 --- a/src/gd_png.c +++ b/src/gd_png.c @@ -139,7 +139,7 @@ BGD_DECLARE(gdImagePtr) gdImageCreateFromPngCtx (gdIOCtx * infile) /* Make sure the signature can't match by dumb luck -- TBB */ /* GRR: isn't sizeof(infile) equal to the size of the pointer? */ - memset (infile, 0, sizeof (infile)); + memset (sig, 0, sizeof (sig)); /* first do a quick check that the file really is a PNG image; could * have used slightly more general png_sig_cmp() function instead */ |