summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorpajoye <none@none>2006-11-05 15:01:47 +0000
committerpajoye <none@none>2006-11-05 15:01:47 +0000
commitbba046b3a2d67b2adb5cf1d131bd04fcd59f889e (patch)
treea70d03a35db1e6dba3e091824398fff768c067ff /src
parent3152082bdbefdea7676ed1752ee3162fb121103c (diff)
downloadlibgd-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/ISSUES2
-rw-r--r--src/gd_png.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/ISSUES b/src/ISSUES
index 654811c..c96f67d 100644
--- a/src/ISSUES
+++ b/src/ISSUES
@@ -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 */