Quellcode durchsuchen

bug#52560 - ArrayIndexOutOfBoundsException: -2 on NPOIFSFileSystem.readBAT

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1237629 13f79535-47bb-0310-9956-ffa450edef68
tags/REL_3_8_FINAL
Maxim Valyanskiy vor 12 Jahren
Ursprung
Commit
91f163c97a
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1
    1
      src/java/org/apache/poi/poifs/filesystem/NPOIFSFileSystem.java

+ 1
- 1
src/java/org/apache/poi/poifs/filesystem/NPOIFSFileSystem.java Datei anzeigen

@@ -369,7 +369,7 @@ public class NPOIFSFileSystem extends BlockStore
for(int j=0; j<bigBlockSize.getXBATEntriesPerBlock(); j++) {
int fatAt = xfat.getValueAt(j);
if(fatAt == POIFSConstants.UNUSED_BLOCK) break;
if(fatAt == POIFSConstants.UNUSED_BLOCK || fatAt == POIFSConstants.END_OF_CHAIN) break;
readBAT(fatAt, loopDetector);
}
}

Laden…
Abbrechen
Speichern