[FFmpeg-cvslog] avformat/id3v2: read_uslt() check for the amount read
Michael Niedermayer
git at videolan.org
Mon Apr 15 01:48:40 EEST 2024
ffmpeg | branch: release/2.8 | Michael Niedermayer <michael at niedermayer.cc> | Wed Mar 20 03:51:05 2024 +0100| [535559993309d2ed72a37266eba69d414f2dbf8c] | committer: Michael Niedermayer
avformat/id3v2: read_uslt() check for the amount read
Fixes: timeout
Fixes: 66783/clusterfuzz-testcase-minimized-ffmpeg_dem_GENH_fuzzer-5356884892647424
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
(cherry picked from commit c0f4abe2aa0117a10fb651f2c1c030d4cd516081)
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=535559993309d2ed72a37266eba69d414f2dbf8c
---
libavformat/id3v2.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavformat/id3v2.c b/libavformat/id3v2.c
index fea09f75d5..cafbcc0c81 100644
--- a/libavformat/id3v2.c
+++ b/libavformat/id3v2.c
@@ -364,7 +364,7 @@ static void read_uslt(AVFormatContext *s, AVIOContext *pb, int taglen,
int encoding;
int ok = 0;
- if (taglen < 1)
+ if (taglen < 4)
goto error;
encoding = avio_r8(pb);
More information about the ffmpeg-cvslog
mailing list