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:
commit
8efc228bec
@ -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
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user