Skip to content

Commit

Permalink
SDT: fix java.lang.NegativeArraySizeException when reading files reco…
Browse files Browse the repository at this point in the history
…rded with SPCM 9.90
  • Loading branch information
cqian89 committed Jun 18, 2024
1 parent a1d05e4 commit 0e842f9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/formats-gpl/src/loci/formats/in/SDTInfo.java
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ public class SDTInfo {
public int setupOffs;

/** Length of the setup data. */
public short setupLength;
public int setupLength;

/** Offset of the first data block. */
public int dataBlockOffs;
Expand Down Expand Up @@ -443,7 +443,7 @@ public SDTInfo(RandomAccessInputStream in, Hashtable meta)
infoOffs = in.readInt();
infoLength = in.readShort();
setupOffs = in.readInt();
setupLength = in.readShort();
setupLength = in.readUnsignedShort();
dataBlockOffs = in.readInt();
noOfDataBlocks = in.readShort();
dataBlockLength = in.readInt();
Expand Down

0 comments on commit 0e842f9

Please sign in to comment.