From b03d19455374682a9d06a1f339a6ab886bac6a49 Mon Sep 17 00:00:00 2001 From: Christopher Snowhill Date: Fri, 27 Jun 2025 03:38:48 -0700 Subject: [PATCH] minimp3: Fix buffer overrun when reading MP3 files Signed-off-by: Christopher Snowhill --- Plugins/minimp3/ThirdParty/minimp3_ex.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Plugins/minimp3/ThirdParty/minimp3_ex.h b/Plugins/minimp3/ThirdParty/minimp3_ex.h index 2871705df..69755972a 100644 --- a/Plugins/minimp3/ThirdParty/minimp3_ex.h +++ b/Plugins/minimp3/ThirdParty/minimp3_ex.h @@ -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;