Hi, I recently chatted with Josh and he pointed out that there might be an endian issue when checking for magic numbers. [[ [email protected]: zip files are guaranteed not to have ENDIAN issues? If the first four bytes of the potential Zip archive do not match the magic numbers for a Zip archive (50 4B 03 04) me: ah, good point [email protected]: i.e. could you have 4B500403 or whatever the correct endian corruptions are :) me: All values are stored in little-endian byte order unless otherwise specified. [email protected]: yeah, but could the file be entirely transposed on media test it.. create a zip file w/a single tiny file and then use some perl magic to swap each pair of bytes :) (i'm not awake enough to do that) me: neither am I ]]
Anyone with experience in this area want to propose some text for the P&C spec to fix this issue. Kind regards, Marcos -- Marcos Caceres http://datadriven.com.au
