cvs: gd /libgd ISSUES gd_png.c
[email protected] ("Pierre-Alain Joye")
| Newsgroups | php.gd.cvs |
|---|---|
| Message-ID | <cvspajoye1162738907@cvsserver> |
pajoye Sun Nov 5 15:01:47 2006 UTC
Modified files:
/gd/libgd ISSUES gd_png.c
Log:
- #12, initialize the sig buf not infile, good that we don't use getC...
http://cvs.php.net/viewvc.cgi/gd/libgd/ISSUES?r1=1.10&r2=1.11&diff_format=u
Index: gd/libgd/ISSUES
diff -u gd/libgd/ISSUES:1.10 gd/libgd/ISSUES:1.11
--- gd/libgd/ISSUES:1.10 Wed Oct 11 00:03:48 2006
+++ gd/libgd/ISSUES Sun Nov 5 15:01:47 2006
@@ -29,3 +29,5 @@
#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)
http://cvs.php.net/viewvc.cgi/gd/libgd/gd_png.c?r1=1.19&r2=1.20&diff_format=u
Index: gd/libgd/gd_png.c
diff -u gd/libgd/gd_png.c:1.19 gd/libgd/gd_png.c:1.20
--- gd/libgd/gd_png.c:1.19 Wed Oct 11 00:02:16 2006
+++ gd/libgd/gd_png.c Sun Nov 5 15:01:47 2006
@@ -1,4 +1,4 @@
-/* $Id: gd_png.c,v 1.19 2006/10/11 00:02:16 pajoye Exp $ */
+/* $Id: gd_png.c,v 1.20 2006/11/05 15:01:47 pajoye Exp $ */
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
@@ -139,7 +139,7 @@
/* 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 */