diff options
author | pajoye <none@none> | 2006-11-05 15:01:47 +0000 |
---|---|---|
committer | pajoye <none@none> | 2006-11-05 15:01:47 +0000 |
commit | bba046b3a2d67b2adb5cf1d131bd04fcd59f889e (patch) | |
tree | a70d03a35db1e6dba3e091824398fff768c067ff /src | |
parent | 3152082bdbefdea7676ed1752ee3162fb121103c (diff) | |
download | libgd-bba046b3a2d67b2adb5cf1d131bd04fcd59f889e.tar.gz |
- #12, initialize the sig buf not infile, good that we don't use getC...
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 */ |