pajoye  committed bba046b

- #12, initialize the sig buf not infile, good that we don't use getC...

  • Participants
  • Parent commits 3152082

Comments (0)

Files changed (2)

 #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)

File src/gd_png.c

   /* 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 */