Check ACB size

This commit is contained in:
bnnm 2022-07-07 23:13:35 +02:00
parent 887af76ef6
commit 10dc2999af

View File

@ -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;