Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

exiv2 crashes when trying to read xmp metadata made by darktable software #2014

Closed
Aceler opened this issue Dec 2, 2021 · 3 comments
Closed

Comments

@Aceler
Copy link

Aceler commented Dec 2, 2021

Maybe the XMP data from darktable is corrupt, but exiv2 shouldn't crash anyways.

To Reproduce

Export a jpg file from Darktable software. Open it up in exiv2.

$ exiv2 -p x pr 0002.jpg
Xmp.crd.CameraProfile XmpText 12 Camera Vivid
Xmp.crd.ColorNoiseReduction XmpText 1 7
Xmp.crd.ColorNoiseReductionDetail XmpText 2 50
Xmp.crd.ColorNoiseReductionSmoothness XmpText 2 50
Xmp.crd.Contrast2012 XmpText 1 0
Xmp.crd.Exposure2012 XmpText 4 0.00
Xmp.crd.Highlights2012 XmpText 1 0
Xmp.crd.LuminanceNoiseReductionContrast XmpText 1 0
Xmp.crd.LuminanceNoiseReductionDetail XmpText 2 75
Xmp.crd.LuminanceSmoothing XmpText 1 3
Xmp.crd.Saturation XmpText 1 0
Xmp.crd.Shadows2012 XmpText 1 0
Xmp.crd.SharpenDetail XmpText 2 25
Xmp.crd.SharpenEdgeMasking XmpText 1 0
Xmp.crd.SharpenRadius XmpText 4 2.00
Xmp.crd.Sharpness XmpText 2 56
Xmp.exif.DateTimeOriginal XmpText 19 Uncaught exception: basic_string::at: __n (which is 19) >= this->size() (which is 19)

$ exiv2 -V
exiv2 0.27.2

Desktop (please complete the following information):
  • OS and version: Ubuntu 20.04
Additional context

This also cause gthumb, gwenview and other viewers to crash. See https://bugs.launchpad.net/ubuntu/+source/gthumb/+bug/1943586

Test image attached here:
0002

@Aceler Aceler added the bug label Dec 2, 2021
@kmilos
Copy link
Collaborator

kmilos commented Dec 2, 2021

Thanks for the report, but a duplicate of #2011, please search before opening new issues.

Already fixed by exiv2 in #1918, it is up to packagers to update or backport.

@kmilos kmilos closed this as completed Dec 2, 2021
@clanmills
Copy link
Collaborator

Beautiful test image. Is the location Switzerland or Canada?

@Aceler
Copy link
Author

Aceler commented Dec 2, 2021

@kmilos ah, yes, I searched only for open reports, my bad. I'm sorry.

@clanmills It is Tolyatti, Russia.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants