mirror of
https://github.com/vgmstream/vgmstream.git
synced 2025-02-21 20:59:52 +01:00
Make RIFF size more strict
This commit is contained in:
parent
b9ec090488
commit
8fdbaaa155
@ -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 */
|
||||
|
Loading…
x
Reference in New Issue
Block a user