Changeset 3912


Ignore:
Timestamp:
04/10/08 12:51:41 (12 years ago)
Author:
melissa
Message:

Make sure that unpacked samples will fit in the output buffer.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/loci/formats/TiffTools.java

    r3905 r3912  
    15631563      } 
    15641564 
    1565       DataTools.unpackBytes(value, samples, numBytes*(startIndex + j), 
    1566         numBytes, littleEndian); 
     1565      if (numBytes*(startIndex + j) < samples.length) { 
     1566        DataTools.unpackBytes(value, samples, numBytes*(startIndex + j), 
     1567          numBytes, littleEndian); 
     1568      } 
    15671569    } 
    15681570  } 
Note: See TracChangeset for help on using the changeset viewer.