Project

General

Profile

Patch #764

PSD resource block handling patch II

Added by Michael Ulbrich over 8 years ago. Updated about 8 years ago.

Status:
Closed
Priority:
Normal
Category:
image format
Target version:
Start date:
04 Mar 2011
Due date:
04 Mar 2011
% Done:

100%

Estimated time:

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.


Files

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

Associated revisions

Revision 2469 (diff)
Added by Andreas Huggel over 8 years ago

#764: Applied patch.

History

#1

Updated by Andreas Huggel over 8 years ago

Patch applied, thanks!

#2

Updated by Michael Ulbrich over 8 years ago

  • Status changed from Resolved to Closed
#3

Updated by Andreas Huggel about 8 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 about 8 years ago

  • Status changed from Closed to Resolved
#5

Updated by Andreas Huggel about 8 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF