Changeset 5613


Ignore:
Timestamp:
10/18/09 16:42:02 (10 years ago)
Author:
melissa
Message:

Fixed infinite loop while searching for XML metadata.

File:
1 edited

Legend:

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

    r5596 r5613  
    207207    status("Looking for XML metadata"); 
    208208    boolean xmlFound = false; 
    209     while (!xmlFound && in.getFilePointer() < in.length()) { 
     209    while (!xmlFound && in.getFilePointer() < in.length() - 6) { 
    210210      int len = (int) Math.min(8192, in.length() - in.getFilePointer()); 
    211211      String check = in.readString(len); 
Note: See TracChangeset for help on using the changeset viewer.