Changeset 6444


Ignore:
Timestamp:
06/02/10 13:12:43 (10 years ago)
Author:
melissa
Message:

Break out of loop if an AIOOB exception is thrown to prevent an infinite loop.

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/4.2/components/forks/mdbtools/src/mdbtools/libmdb/Data.java

    r6368 r6444  
    891891            System.arraycopy(mdb.pg_buf,row_start+4,dest.ba,cur,len-4); 
    892892          } 
    893           catch (ArrayIndexOutOfBoundsException e) { } 
     893          catch (ArrayIndexOutOfBoundsException e) { 
     894            break; 
     895          } 
    894896//          memcpy(dest[cur], mdb.pg_buf[row_start+4],len - 4); 
    895897        } 
  • trunk/components/forks/mdbtools/src/mdbtools/libmdb/Data.java

    r6368 r6444  
    891891            System.arraycopy(mdb.pg_buf,row_start+4,dest.ba,cur,len-4); 
    892892          } 
    893           catch (ArrayIndexOutOfBoundsException e) { } 
     893          catch (ArrayIndexOutOfBoundsException e) { 
     894            break; 
     895          } 
    894896//          memcpy(dest[cur], mdb.pg_buf[row_start+4],len - 4); 
    895897        } 
Note: See TracChangeset for help on using the changeset viewer.