mirror of
https://github.com/crskycode/GARbro.git
synced 2024-10-23 15:48:16 +08:00
(CGF): sanity check.
This commit is contained in:
parent
b66893a2aa
commit
364049f72a
@ -76,6 +76,8 @@ namespace GameRes.Formats.Triangle
|
|||||||
for (int i = 0; i < count; ++i)
|
for (int i = 0; i < count; ++i)
|
||||||
{
|
{
|
||||||
var name = file.View.ReadString (index_offset, entry_size-4);
|
var name = file.View.ReadString (index_offset, entry_size-4);
|
||||||
|
if (!IsValidEntryName (name))
|
||||||
|
return null;
|
||||||
uint flags = next_offset >> 30;
|
uint flags = next_offset >> 30;
|
||||||
Entry entry;
|
Entry entry;
|
||||||
if (1 == flags || name.HasExtension (".iaf"))
|
if (1 == flags || name.HasExtension (".iaf"))
|
||||||
|
Loading…
Reference in New Issue
Block a user