OK thanks. But the info_ptr vs png_ptr bug needs to be fixed anyhow.
Thanks for the report. It does look like a regression. Can you rebuild your libpng...
How do you set the bit depth? Your call to C4Palette() must be preceded with something...
Consistant use of "extern" in png.h
Closing as fixed. Reopen if you're still experiencing this bug.
a out of bound read in libpng 1.2.*-1.2.53 and libpng 1.4.*
Fixed in libpng-1.0.64, 1.2.54, 1.4.17, and 1.5.24; thanks for the report.
libpng-1.6.19, 1.5.24, 1.4.17, 1.2.54, and 1.0.64 released