Page MenuHomePhabricator

PNG file that randomly contains a ZIP magic number is incorrectly detected as a "corrupt or otherwise unreadable ZIP file"
Open, Needs TriagePublic

Description

Trying to upload the attached PNG file results in an error message "The file is a corrupt or otherwise unreadable ZIP file. It cannot be properly checked for security." Checking it in a hex editor, it turns out that one of the magic numbers for the ZIP format, PK\x05\x06, appears at offset 0xFA4. Can this be fixed? (If not, the error message should at least be clarified.)

AncientElf-ROD-IT-VG.png (160×240 px, 14 KB)