mirror of
https://github.com/crskycode/GARbro.git
synced 2024-12-23 19:34:15 +08:00
(Types): filename sanity check.
This commit is contained in:
parent
cc9a51c111
commit
093a633516
@ -56,6 +56,8 @@ namespace GameRes.Formats.Types
|
||||
if (0 == name_length || name_length > 0x100)
|
||||
return null;
|
||||
var name = input.ReadCString (name_length);
|
||||
if (string.IsNullOrWhiteSpace (name))
|
||||
return null;
|
||||
var entry = new Entry {
|
||||
Name = name,
|
||||
Offset = input.Position,
|
||||
|
Loading…
x
Reference in New Issue
Block a user