Skip to content

Commit

Permalink
Merge pull request #4198 from cqian89/develop
Browse files Browse the repository at this point in the history
SDT: fix NegativeArraySizeException when reading files recorded by SPCM64 9.90
  • Loading branch information
sbesson authored Sep 3, 2024
2 parents aaaf99d + 0e842f9 commit 8f83c44
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 8f83c44

Please sign in to comment.