mirror of
https://github.com/crskycode/GARbro.git
synced 2024-12-24 03:44:13 +08:00
fixed segment size sanity check.
This commit is contained in:
parent
f3173e87ac
commit
4c8ce07e1d
@ -209,8 +209,7 @@ namespace GameRes.Formats.KiriKiri
|
||||
long segment_offset = header.ReadInt64();
|
||||
long segment_size = header.ReadInt64();
|
||||
long segment_packed_size = header.ReadInt64();
|
||||
if (segment_offset > file.MaxOffset || segment_size > file.MaxOffset
|
||||
|| segment_packed_size > file.MaxOffset)
|
||||
if (segment_offset > file.MaxOffset || segment_packed_size > file.MaxOffset)
|
||||
{
|
||||
goto NextEntry;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user