Closed GoogleCodeExporter closed 9 years ago
[deleted comment]
Ok, it should be:
if (!png_sig_cmp (magic, 0, 8))
The first parameter is a pointer to the array to look at, the 2nd is the byte
index
in the array where to start to look at and the last one is the number of bytes
to
look at. Since the 'magic' array is 8 bytes wide, if you set the start index to
1,
the last byte will be read outside the array memory allocated area, which is
generally not good.
Original comment by ekeeke31@gmail.com
on 24 Mar 2010 at 9:44
Thank you so much for this, I have been pulling my hair out today trying to
figure
this out! Tested and working.
Original comment by joelwhyb...@googlemail.com
on 11 Apr 2010 at 6:33
Original comment by ekeeke31@gmail.com
on 13 Apr 2010 at 12:21
Original issue reported on code.google.com by
jora...@gmail.com
on 23 Mar 2010 at 7:36