Image-ExifTool - exiftool can hang on corrupt jpeg

Posted on Fri Nov 24 19:30:18 2006 by themonk
exiftool can hang on corrupt jpeg
Hi Phil

We managed to get exiftool to hang whilst writing to a corrupt JPEG...

The JPEG which was ONLY 2 bytes long

\377\330

...Not quite sure how this occurs and we will improve our error checking so that this image is rejected before it gets to ExifTool...

However....

If exiftool comes across such an image and you try and modify it's contents then it will hang indefinately...

exiftool will correctly identify this as an invalid file if you try and read the tags.

Mark
Direct Responses: 3617 | Write a response