Changeset 7579


Ignore:
Timestamp:
01/22/11 15:30:24 (9 years ago)
Author:
melissa
Message:

Prevent potential AIOOB.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/components/bio-formats/src/loci/formats/in/SlidebookReader.java

    r7552 r7579  
    623623        int planes = (int) (length / planeSize); 
    624624        for (int p=0; p<planes; p++, nextImage++) { 
    625           planeOffset[i][nextImage] = offset + p * planeSize; 
     625          if (nextImage < planeOffset[i].length) { 
     626            planeOffset[i][nextImage] = offset + p * planeSize; 
     627          } 
    626628        } 
    627629      } 
Note: See TracChangeset for help on using the changeset viewer.