Skip to content

Commit

Permalink
Merge pull request #4099 from melissalinkert/gh-3941
Browse files Browse the repository at this point in the history
TIFF: check IFD entry offset before seeking
  • Loading branch information
dgault authored Oct 4, 2023
2 parents 90bdfa5 + fc6e42e commit f9f4617
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions components/formats-bsd/src/loci/formats/tiff/TiffParser.java
Original file line number Diff line number Diff line change
Expand Up @@ -546,6 +546,9 @@ public Object getIFDValue(TiffIFDEntry entry) throws IOException {
offset &= 0xffffffffL;
offset += 0x100000000L;
}
if (offset >= in.length()) {
return null;
}
in.seek(offset);
}

Expand Down

0 comments on commit f9f4617

Please sign in to comment.