mirror of
https://github.com/crskycode/GARbro.git
synced 2024-11-30 08:55:39 +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)
|
if (0 == name_length || name_length > 0x100)
|
||||||
return null;
|
return null;
|
||||||
var name = input.ReadCString (name_length);
|
var name = input.ReadCString (name_length);
|
||||||
|
if (string.IsNullOrWhiteSpace (name))
|
||||||
|
return null;
|
||||||
var entry = new Entry {
|
var entry = new Entry {
|
||||||
Name = name,
|
Name = name,
|
||||||
Offset = input.Position,
|
Offset = input.Position,
|
||||||
|
Loading…
Reference in New Issue
Block a user