Make RIFF size more strict

This commit is contained in:
bnnm 2020-06-30 23:41:25 +02:00
parent b9ec090488
commit 8fdbaaa155

View File

@ -399,7 +399,7 @@ VGMSTREAM* init_vgmstream_riff(STREAMFILE* sf) {
}
/* check for truncated RIFF */
if (file_size < riff_size+0x08)
if (file_size != riff_size + 0x08)
goto fail;
/* read through chunks to verify format and find metadata */