Last modified: 2011-10-24 02:21:51 UTC
When running refreshImageMetadata.php on angwiki, I got: Warning: unpack(): Type N: not enough input, need 4, have 0 in /usr/local/apache/common-local/php-1.18/includes/media/JpegMetadataExtractor.php on line 205 298290 times, and then I hit ctrl-C. JpegMetadataExtractor should use a wrapper around unpack that guards against reading beyond the end of the string. I made one for ZipDirectoryReader, maybe we should factor that out for the benefit of other binary format parsers.
Assigning to Bawolff.
Expanding summary, also happens with GifMetadataExtrator.
(btw, I probably won't have time to fix this until the weekend)
fixed in r100572. I think [[ang:File:Handsprecan.jpg]] might have been the specific file in question causing the issue (It has some metadata inside it that looks invalid), but I wasn't able to re-produce the massive number of warnings on my local install, so I don't really know for sure if it was that file or something else.