mirror of
https://github.com/vgmstream/vgmstream.git
synced 2025-02-12 09:03:10 +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 */
|
/* checks */
|
||||||
if (!is_id32be(0x00,sf, "@UTF"))
|
if (!is_id32be(0x00,sf, "@UTF"))
|
||||||
goto fail;
|
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"))
|
if (!check_extensions(sf, "acb"))
|
||||||
goto fail;
|
goto fail;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user