mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-03-21 23:16:50 +08:00
Merge tag 'media/v7.0-3' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media
Pull media fix from Mauro Carvalho Chehab: "Fix for MPEG-TS decoder in dvb-net" * tag 'media/v7.0-3' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media: media: dvb-net: fix OOB access in ULE extension header tables
This commit is contained in:
@@ -228,6 +228,9 @@ static int handle_one_ule_extension( struct dvb_net_priv *p )
|
||||
unsigned char hlen = (p->ule_sndu_type & 0x0700) >> 8;
|
||||
unsigned char htype = p->ule_sndu_type & 0x00FF;
|
||||
|
||||
if (htype >= ARRAY_SIZE(ule_mandatory_ext_handlers))
|
||||
return -1;
|
||||
|
||||
/* Discriminate mandatory and optional extension headers. */
|
||||
if (hlen == 0) {
|
||||
/* Mandatory extension header */
|
||||
|
||||
Reference in New Issue
Block a user