additional sanity checks to reduce false positive detections.

This commit is contained in:
morkt
2015-07-09 06:53:55 +04:00
parent ea75aa558b
commit 919ef22202
3 changed files with 7 additions and 4 deletions

View File

@@ -66,6 +66,8 @@ namespace GameRes.Formats.Cherry
for (int i = 0; i < count; ++i)
{
string name = file.View.ReadString (index_offset, 0x10);
if (0 == name.Length)
return null;
var offset = base_offset + file.View.ReadUInt32 (index_offset+0x10);
Entry entry;
if (is_grp)