Merge "media: dvb-core: Fix possible buffer overflow error"
This commit is contained in:
commit
0482210d38
1 changed files with 3 additions and 0 deletions
|
@ -352,6 +352,9 @@ int dvb_dmx_video_pattern_search(
|
|||
buf_size)
|
||||
break;
|
||||
|
||||
if (current_size >= DVB_DMX_MAX_PATTERN_LEN)
|
||||
break;
|
||||
|
||||
if (dvb_dmx_patterns_match(
|
||||
(patterns[j]->pattern + current_size),
|
||||
buf, (patterns[j]->mask + current_size),
|
||||
|
|
Loading…
Add table
Reference in a new issue