mirror of
https://github.com/crskycode/GARbro.git
synced 2024-11-27 15:44:00 +08:00
(AnimOpener): fixed sanity check.
This commit is contained in:
parent
67120cb1cd
commit
5ea59a1a3e
@ -58,7 +58,7 @@ namespace GameRes.Formats.Marble
|
|||||||
uint audio_offset = file.View.ReadUInt32 (0x14);
|
uint audio_offset = file.View.ReadUInt32 (0x14);
|
||||||
if (audio_size > 0)
|
if (audio_size > 0)
|
||||||
{
|
{
|
||||||
if (audio_offset >= file.MaxOffset || audio_size >= file.MaxOffset - audio_offset)
|
if (audio_offset >= file.MaxOffset || audio_size > file.MaxOffset - audio_offset)
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
int table_offset = 0x18 + count * 6;
|
int table_offset = 0x18 + count * 6;
|
||||||
|
Loading…
Reference in New Issue
Block a user