Changeset 3863


Ignore:
Timestamp:
04/01/08 16:32:35 (12 years ago)
Author:
curtis
Message:

Check for out-of-bounds IFDs.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/loci/formats/in/OMETiffReader.java

    r3846 r3863  
    640640          fileMap[currentSeries][idx] = currentFile; 
    641641          for (int i=1; i<Integer.parseInt(numPlanes); i++) { 
    642             ifdMap[currentSeries][idx + i] = ifdMap[currentSeries][idx] + i; 
    643             fileMap[currentSeries][idx + i] = currentFile; 
     642            if (idx + i < ifdMap[currentSeries].length) { 
     643              ifdMap[currentSeries][idx + i] = ifdMap[currentSeries][idx] + i; 
     644              fileMap[currentSeries][idx + i] = currentFile; 
     645            } 
    644646          } 
    645647        } 
Note: See TracChangeset for help on using the changeset viewer.