mirror of
https://github.com/crskycode/GARbro.git
synced 2026-07-08 01:30:18 +08:00
(Dogenzaka.BinOpener): additional sanity check.
This commit is contained in:
@@ -135,7 +135,7 @@ namespace GameRes.Formats.Dogenzaka
|
|||||||
var entry = AutoEntry.Create (file, next_offset, name);
|
var entry = AutoEntry.Create (file, next_offset, name);
|
||||||
next_offset = base_offset + file.View.ReadUInt32 (index_offset);
|
next_offset = base_offset + file.View.ReadUInt32 (index_offset);
|
||||||
entry.Size = next_offset - (uint)entry.Offset;
|
entry.Size = next_offset - (uint)entry.Offset;
|
||||||
if (!entry.CheckPlacement (file.MaxOffset))
|
if (0 == entry.Size || !entry.CheckPlacement (file.MaxOffset))
|
||||||
return null;
|
return null;
|
||||||
dir.Add (entry);
|
dir.Add (entry);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user