Bug #616
readMetadata method got crashed for jpeg image.
0%
Description
Hi
I found one image for which readMetadata method. Could you please look into the issue and is there any solution for it. It may be also possible that the image file has been corrupt, but how i can validate these kinds of image before calling readMetadata method of Image.
Thanks,
Kundan
Files
History
Updated by Andreas Huggel almost 13 years ago
It looks ok here and certainly doesn't crash:
OATEST-02> ./exiv2.exe 20080807.jeudi.07.ao_C3_BBt.2008.16_3A43_3A35.IMG_5282.JPG.rotate.jpg Warning: Directory Thumbnail, entry 0x0201: Data area exceeds data buffer, ignoring it. File name : 20080807.jeudi.07.ao_C3_BBt.2008.16_3A43_3A35.IMG_5282.JPG.rotate.jpg File size : 404212 Bytes MIME type : image/jpeg Image size : 1600 x 1200 Camera make : Canon Camera model : Canon PowerShot A610 Image timestamp : 2008:08:07 16:43:35 ...
This is with the Exiv2 0.18 Windows binary from the homepage.
Which version are you using?
Andreas
Updated by Robin Mills almost 13 years ago
I've just build that latest exiv2 for Mac and Ubuntu. Same result as Andreas - no problem here.
Kundan: can you run exiv2 -V
and tell us your version (and your platform)
Robin
Updated by Andreas Huggel almost 13 years ago
Kundan Bharti wrote:
it may be also possible that the image file has been corrupt,
but how i can validate these kinds of image before calling readMetadata method of Image.
If readMetadata crashes it's a bug for Exiv2. You shouldn't have to worry about what images can be fed to it.
-ahu.
Updated by Andreas Huggel over 12 years ago
- Status changed from Feedback to Closed
Closing this issue. Not reproducible without further feedback.