Skip to content

Commit

Permalink
Merge pull request #1205 from melissalinkert/12367
Browse files Browse the repository at this point in the history
TIFF: correctly account for ```fakeBigTiff``` when reading IFD entries
  • Loading branch information
melissalinkert committed Jul 14, 2014
2 parents 9b755c5 + 4cfc48c commit 4829951
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions components/formats-bsd/src/loci/formats/tiff/TiffParser.java
Original file line number Diff line number Diff line change
Expand Up @@ -476,6 +476,10 @@ public Object getIFDValue(TiffIFDEntry entry) throws IOException {
}

if (offset != in.getFilePointer()) {
if (fakeBigTiff && (offset < 0 || offset > in.getFilePointer())) {
offset &= 0xffffffffL;
offset += 0x100000000L;
}
in.seek(offset);
}

Expand Down

0 comments on commit 4829951

Please sign in to comment.