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
2 files changed
tree: 7d47eb87a9914053a1cb8b90d7b2ff28ec28f7e7
  1. src/
  2. KEYS
  3. LICENSE.txt
  4. NOTICE.txt
  5. pom.xml
  6. README.txt
  7. RELEASE_NOTES