mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2026-06-15 12:00:33 +00: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:
parent
91146cb57a
commit
04848bb2ff
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue