mirror of
https://github.com/crskycode/GARbro.git
synced 2026-06-11 08:08:53 +08:00
(NsaOpener.ReadIndex): abort on zero-length file name.
This commit is contained in:
@@ -140,7 +140,7 @@ namespace GameRes.Formats.NScripter
|
||||
if (base_offset - file.Position < 15)
|
||||
return null;
|
||||
var name = file.ReadCString();
|
||||
if (base_offset - file.Position < 13)
|
||||
if (base_offset - file.Position < 13 || 0 == name.Length)
|
||||
return null;
|
||||
|
||||
var entry = FormatCatalog.Instance.Create<NsaEntry> (name);
|
||||
|
||||
Reference in New Issue
Block a user