segfault on malformed exif tag
Bug #974809 reported by
infinull
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pyexiv2 |
Fix Committed
|
High
|
Unassigned | ||
pyexiv2 (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Test Image: http://
steps to reproduce:
Related branches
Changed in pyexiv2 (Ubuntu): | |
status: | New → Confirmed |
Changed in pyexiv2: | |
assignee: | Olivier Tilloy (osomon) → nobody |
To post a comment you must log in.
Oops, I meant to just attach the file, now I can't edit the bug body.
Anyway, when you opening the image file I attached (and linked), and you try to access tag with key Exif.Image.0x0001, you will get a segfault (probably should just throw an exception about malformed metadata)
Steps to reproduce ImageMetadata( '1515.jpg' ) Image.0x0001' ] #segfaults
md = pyexiv2.
md.read()
t = md['Exif.
exiv2 command line outputs this warning:
Warning: Directory Image, entry 0x0001 has unknown Exif (TIFF) type 0; setting type size 1.
Thanks for any help.