minimp3: Fix buffer overrun when reading MP3 files
Signed-off-by: Christopher Snowhill <kode54@gmail.com>
This commit is contained in:
parent
110e991c3a
commit
b03d194553
1 changed files with 1 additions and 1 deletions
2
Plugins/minimp3/ThirdParty/minimp3_ex.h
vendored
2
Plugins/minimp3/ThirdParty/minimp3_ex.h
vendored
|
@ -590,7 +590,7 @@ int mp3dec_iterate_cb(mp3dec_io_t *io, uint8_t *buf, size_t buf_size, MP3D_ITERA
|
|||
readed += i;
|
||||
if (callback)
|
||||
{
|
||||
if ((ret = callback(user_data, hdr, frame_size, free_format_bytes, filled - consumed, readed, &frame_info)))
|
||||
if ((ret = callback(user_data, hdr, frame_size, free_format_bytes, filled - consumed - i, readed, &frame_info)))
|
||||
return ret;
|
||||
}
|
||||
readed += frame_size;
|
||||
|
|
Loading…
Reference in a new issue