cvs: php-src /ext/gd/libgd gd_png.c

From: Date: Sun, 05 Nov 2006 15:06:50 +0000
Subject: cvs: php-src /ext/gd/libgd gd_png.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-41366@lists.php.net to get a copy of this message
pajoye Sun Nov 5 15:06:50 2006 UTC Modified files: /php-src/ext/gd/libgd gd_png.c Log: - MFH: Merge from gd-cvs, initialize the signature not the infile ctx http://cvs.php.net/viewvc.cgi/php-src/ext/gd/libgd/gd_png.c?r1=1.21&r2=1.22&diff_format=u Index: php-src/ext/gd/libgd/gd_png.c diff -u php-src/ext/gd/libgd/gd_png.c:1.21 php-src/ext/gd/libgd/gd_png.c:1.22 --- php-src/ext/gd/libgd/gd_png.c:1.21 Sat Nov 4 14:34:04 2006 +++ php-src/ext/gd/libgd/gd_png.c Sun Nov 5 15:06:50 2006 @@ -126,7 +126,8 @@ /* 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

« previous php.cvs (#41366) next »