Attached POC file with corrected CRC . This should be able to reproduce the issue.
Memory Leak in png2pnm.c : png2pnm while processing corrupted PNG image