mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2026-06-16 04:32:47 +02:00
avformat/mpegts: Check IOD_DESCRIPTOR len
Fixes: out of array read
Fixes: VULN-7/poc.ts
Found-by: Zhenpeng (Leo) Lin from depthfirst
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 5975149603)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
@@ -2412,7 +2412,7 @@ static void pmt_cb(MpegTSFilter *filter, const uint8_t *section, int section_len
|
||||
// something else is broken, exit the program_descriptors_loop
|
||||
break;
|
||||
program_info_length -= len;
|
||||
if (tag == IOD_DESCRIPTOR) {
|
||||
if (tag == IOD_DESCRIPTOR && len >= 2) {
|
||||
get8(&p, p_end); // scope
|
||||
get8(&p, p_end); // label
|
||||
len -= 2;
|
||||
|
||||
Reference in New Issue
Block a user