commit | d1054ee09ae1daad4a6b1c8134757e790a31d1a9 | [log] [tgz] |
---|---|---|
author | Damjan Jovanovic <damjan@apache.org> | Sat Nov 26 09:19:39 2011 +0000 |
committer | Damjan Jovanovic <damjan@apache.org> | Sat Nov 26 09:19:39 2011 +0000 |
tree | 7d47eb87a9914053a1cb8b90d7b2ff28ec28f7e7 | |
parent | 08c4636cde270177a9068ffe0b7a45655297c4dd [diff] |
When reading TIFF files (and EXIF sections in JPEG) that have invalid offsets and/or lengths for their IFD fields, ignore these bad IFDs when we are not in strict mode. This seems to be how other tools handle this problem; we used to throw IOException or OutOfMemoryError, and fail to parse the file with no possibility of recovery. Jira issue key: SANSELAN-55 git-svn-id: https://svn.apache.org/repos/asf/commons/proper/sanselan/trunk@1206412 13f79535-47bb-0310-9956-ffa450edef68