diff --git a/README.md b/README.md index 1e97cb4..d583bc5 100644 --- a/README.md +++ b/README.md @@ -76,9 +76,13 @@ icc (ICC) 15.0.1 20141023 ### Building On Windows:
gradlew --max-workers=1 clean buildRelease+* For faster building without unit tests use this:exclamation: +
gradlew --max-workers=1 clean buildFixesOn Linux:
./gradlew --max-workers=1 clean buildRelease+* For faster building without unit tests use this:exclamation: +
./gradlew --max-workers=1 clean buildFixesCompiled binaries will be placed in the rehlds/build/binaries/ directory diff --git a/flightrec/decoder/src/main/java/org/rehlds/flightrec/filescan/FlightRecFileScanner.java b/flightrec/decoder/src/main/java/org/rehlds/flightrec/filescan/FlightRecFileScanner.java index a67f82e..e67f5cb 100644 --- a/flightrec/decoder/src/main/java/org/rehlds/flightrec/filescan/FlightRecFileScanner.java +++ b/flightrec/decoder/src/main/java/org/rehlds/flightrec/filescan/FlightRecFileScanner.java @@ -62,7 +62,7 @@ public class FlightRecFileScanner { } long endPos = file.getFilePointer() - size + pos + allocSize; - if (endPos >= file.length()) { + if (endPos > file.length()) { resList.add(new HeaderScanResult(file.getFilePointer() - size + pos, allocSize, false, "Regions partially lays outside the file", version)); return; }