Skip to content

Commit 1f0a04a

Browse files
authored
Merge pull request #4098 from melissalinkert/gh-4089
TIFF: throw exception on 64-bit int data
2 parents bc1fcdd + 13e479f commit 1f0a04a

File tree

1 file changed

+3
-0
lines changed
  • components/formats-bsd/src/loci/formats/tiff

1 file changed

+3
-0
lines changed

components/formats-bsd/src/loci/formats/tiff/IFD.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -615,6 +615,9 @@ public int getPixelType() throws FormatException {
615615
case 24:
616616
return FormatTools.FLOAT;
617617
case 64:
618+
if (bitFormat != 3) {
619+
throw new FormatException("64-bit int data not supported");
620+
}
618621
return FormatTools.DOUBLE;
619622
case 32:
620623
if (bitFormat == 3) return FormatTools.FLOAT;

0 commit comments

Comments
 (0)