mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-24 13:56:33 +02:00
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@niedermayer.cc>
This commit is contained in:
parent
b7cdaff7e2
commit
c0f4abe2aa
@ -370,7 +370,7 @@ static void read_uslt(AVFormatContext *s, AVIOContext *pb, int taglen,
|
|||||||
int encoding;
|
int encoding;
|
||||||
int ok = 0;
|
int ok = 0;
|
||||||
|
|
||||||
if (taglen < 1)
|
if (taglen < 4)
|
||||||
goto error;
|
goto error;
|
||||||
|
|
||||||
encoding = avio_r8(pb);
|
encoding = avio_r8(pb);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user