From 4f2e67121d9a10f46553e4ac416ba7ab34bfb444 Mon Sep 17 00:00:00 2001 From: Pierre Joye Date: Sun, 5 Nov 2006 15:06:50 +0000 Subject: [PATCH] - MFH: Merge from gd-cvs, initialize the signature not the infile ctx --- ext/gd/libgd/gd_png.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ext/gd/libgd/gd_png.c b/ext/gd/libgd/gd_png.c index 4f4167a754..d499182064 100644 --- a/ext/gd/libgd/gd_png.c +++ b/ext/gd/libgd/gd_png.c @@ -126,7 +126,8 @@ 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 -- 2.50.1