mirror of
https://github.com/vgmstream/vgmstream.git
synced 2025-01-31 20:25:23 +01:00
Check ACB size
This commit is contained in:
parent
887af76ef6
commit
10dc2999af
@ -15,6 +15,10 @@ VGMSTREAM* init_vgmstream_acb(STREAMFILE* sf) {
|
||||
/* checks */
|
||||
if (!is_id32be(0x00,sf, "@UTF"))
|
||||
goto fail;
|
||||
/* mainly for bigger files (utf lib checks smaller) */
|
||||
if (read_u32be(0x04,sf) + 0x08 != get_streamfile_size(sf))
|
||||
goto fail;
|
||||
|
||||
if (!check_extensions(sf, "acb"))
|
||||
goto fail;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user