mirror of
https://github.com/crskycode/GARbro.git
synced 2024-12-24 03:44:13 +08:00
(XP3): workaround for ill-formed archives.
This commit is contained in:
parent
afe551863b
commit
bf6d1a6c3f
@ -161,7 +161,12 @@ namespace GameRes.Formats.KiriKiri
|
||||
long section_size = header.ReadInt64();
|
||||
entry_size -= 12;
|
||||
if (section_size > entry_size)
|
||||
{
|
||||
// allow "info" sections with wrong size
|
||||
if (section != 0x6f666e69)
|
||||
break;
|
||||
section_size = entry_size;
|
||||
}
|
||||
entry_size -= section_size;
|
||||
long next_section_pos = header.BaseStream.Position + section_size;
|
||||
switch (section)
|
||||
|
Loading…
x
Reference in New Issue
Block a user