Bug #645
Conversion from XMP sidecar leaks XMP-SDK exception. (digiKam bug 204042)
100%
Description
The conversion from XMP (typically when reading an XMP sidecar file) with invalid (non ISO 8601) timestamps leaks an XMP-SDK exception. The XMP-SDK function SXMPUtils::ConvertToDate throws an XMP_Error if the conversion fails. (Check other XMP-SDK functions as well.)
The Exiv2 library must catch such exceptions and should do something useful anyway, or, if not possible, at least translate them to Exiv2 exceptions.
Reported by François Tissandier as digiKam bug 204042
Files
Associated revisions
#645: Added check for empty GPS coordinate value to prevent out-of-range exception.
History
Updated by Vladimir Nadvornik about 12 years ago
- File exiv2-parse-date.patch exiv2-parse-date.patch added
The attached patch should fix it.
Updated by Vladimir Nadvornik about 12 years ago
- File exiv2-parse-date2.patch exiv2-parse-date2.patch added
And this is the correct version of the patch ;)
Updated by Andreas Huggel about 12 years ago
- Status changed from New to Resolved
- Target version set to 0.19
- % Done changed from 0 to 100
Thanks Vladimir.
With the additional check in r1900 the sample XMP from the original digiKam bug now works.
#645: Catch XMP-SDK exception from date conversion. (Vladimir Nadvornik)