The library crashes, in some cases, with images
produced by a Canon Pro 1. The crash happens
systematically and reproducibly with only a few images.
I've appended an image with the same exif dictionary
that you can use to reproduce the crash.
exif --tag=Orientation --ifd=0 --set-value=1 x.jpg
That causes the segmentation fault. I'm using version
0.6.12 of libexif and exif 0.6.9 (the latest of today).