Please find attached the patch; the code that was overloading the _trailer->z_magic area with the offset was the offending item. I've manually mapped the offset to the magic area, then reversed the function in the __correct_rootseek defintion that followed it.

Solaris 8 Update 4 (08/03), Sun Forte Compilers 6 update 2

This now correctly scans the test2.zip file without BUS Erroring, and finds the test file within it.

I'm guessing that the actual order of the mapping from offset -> z_magic doesn't matter (endian specific), providing the __correct_rootseek function follows the same logic.

Regards

Marty

Attachment: zzip-zip.c.patch
Description: Binary data

Reply via email to