From bef44b8741fc2b6f01ce4f593c299dee871d54c0 Mon Sep 17 00:00:00 2001 From: s1lentq Date: Thu, 21 Jul 2016 01:21:05 +0700 Subject: [PATCH] Fix flight decoder are failed. Added info in Readme.md about faster building. --- README.md | 4 ++++ .../org/rehlds/flightrec/filescan/FlightRecFileScanner.java | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) 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 buildFixes
On Linux:
./gradlew --max-workers=1 clean buildRelease
+* For faster building without unit tests use this:exclamation: +
./gradlew --max-workers=1 clean buildFixes
Compiled 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; }