Bug #480

JPEG APP13 (used to store IPTC IRB) can not be larger than 64kB but IRB buffers can

Added by Andreas Huggel over 12 years ago. Updated about 10 years ago.

Status:ClosedStart date:
Priority:NormalDue date:
Assignee:Andreas Huggel% Done:


Target version:0.11


Exiv2 should allow to set IPTC data which is larger than 64k (the limit for the Preview field is 256000 bytes according to the specs) and it should allow to copy that IPTC data data buffer in a binary format. However, it should NOT allow to write an IPTC block larger than 64k to a JPEG image (using Image::writeMetadata).

Currently there is no check of the size of the APP13 segment which results in corrupted JPEGs if an IRB block larger than 64k is written.
On the other hand, the IRB block by itself is currently unnecessarily limited to 64k.

Additional information:

This problem was first reported as digikam bug 130525: http://bugs.kde.org/show_bug.cgi?id=130525


Also available in: Atom PDF

Redmine Appliance - Powered by TurnKey Linux