Bug #480

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

Added by Andreas Huggel about 11 years ago. Updated almost 9 years ago.

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

0%

Category:iptc
Target version:0.11

Description

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

History

Also available in: Atom PDF

Redmine Appliance - Powered by TurnKey Linux