History

avformat/id3v2: read_uslt() check for the amount read

Fixes: timeout Fixes: 66783/clusterfuzz-testcase-minimized-ffmpeg_dem_GENH_fuzzer-5356884892647424

Michael Niedermayer committed 2 years ago

Commit c0f4abe1 parent b7cdaff1 file · +1 −1Browse files

Showing the changes to libavformat (1 of 1 file). Show all

Unified · Split

libavformat/id3v2.c+1−1
@@ -370,7 +370,7 @@ static void read_uslt(AVFormatContext *s, AVIOContext *pb, int taglen, · 369 unmodified lines
370 int encoding;370 int encoding;
371 int ok = 0;371 int ok = 0;
372 372
373 if (taglen < 1)373 if (taglen < 4)
374 goto error;374 goto error;
375 375
376 encoding = avio_r8(pb);376 encoding = avio_r8(pb);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t