mirror of
https://github.com/crskycode/GARbro.git
synced 2024-12-23 11:24:14 +08:00
(Dogenzaka.BinOpener): additional sanity check.
This commit is contained in:
parent
8947e19d00
commit
002158cbbb
@ -135,7 +135,7 @@ namespace GameRes.Formats.Dogenzaka
|
||||
var entry = AutoEntry.Create (file, next_offset, name);
|
||||
next_offset = base_offset + file.View.ReadUInt32 (index_offset);
|
||||
entry.Size = next_offset - (uint)entry.Offset;
|
||||
if (!entry.CheckPlacement (file.MaxOffset))
|
||||
if (0 == entry.Size || !entry.CheckPlacement (file.MaxOffset))
|
||||
return null;
|
||||
dir.Add (entry);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user