2
0
mirror of https://github.com/rehlds/rehlds.git synced 2025-01-16 16:48:13 +03:00

Merge pull request #224 from s1lentq/master

Fix possible failure in the flight decoder
This commit is contained in:
theAsmodai 2016-07-20 23:25:24 +03:00 committed by GitHub
commit 8efc228bec
2 changed files with 5 additions and 1 deletions

View File

@ -76,9 +76,13 @@ icc (ICC) 15.0.1 20141023
### Building
On Windows:
<pre>gradlew --max-workers=1 clean buildRelease</pre>
* For faster building without unit tests use this:exclamation:
<pre>gradlew --max-workers=1 clean buildFixes</pre>
On Linux:
<pre>./gradlew --max-workers=1 clean buildRelease</pre>
* For faster building without unit tests use this:exclamation:
<pre>./gradlew --max-workers=1 clean buildFixes</pre>
Compiled binaries will be placed in the rehlds/build/binaries/ directory

View File

@ -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;
}