Patch #764

PSD resource block handling patch II

Added by Michael Ulbrich over 6 years ago. Updated almost 6 years ago.

Status:ClosedStart date:04 Mar 2011
Priority:NormalDue date:04 Mar 2011
Assignee:Michael Ulbrich% Done:

100%

Category:image format
Target version:0.22

Description

1. A new XMP resource block has already been written. The old XMP resource block towards the end of the resource block list is of odd length and shall be skipped. In this case the read pointer into the old resource block list was erroneously advanced by the odd length and not by the even length, which the resource block actually occupies in the file (padded by a trailing 0-byte).

2. If the resource block reading loop gets out of sync, it now throws an exception and does not merely leave the loop via 'break'.

The attached patch fixes these bugs.

exiv2-0.21.1_psdimage.patch Magnifier (3.34 KB) Michael Ulbrich, 04 Mar 2011 13:02

Associated revisions

Revision 2469
Added by Andreas Huggel over 6 years ago

#764: Applied patch.

History

#1 Updated by Andreas Huggel over 6 years ago

Patch applied, thanks!

#2 Updated by Michael Ulbrich almost 6 years ago

  • Status changed from Resolved to Closed

#3 Updated by Andreas Huggel almost 6 years ago

Thanks a lot for your work, Volker & Michael! I've updated this issue back to 'Resolved', following the usual process. It will get closed when it's released.

Andreas

#4 Updated by Andreas Huggel almost 6 years ago

  • Status changed from Closed to Resolved

#5 Updated by Andreas Huggel almost 6 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF

Redmine Appliance - Powered by TurnKey Linux