]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
media: dvb-frontends/stv0910: Fix possible buffer overflow
authorDaniel Scheller <d.scheller@gmx.net>
Mon, 3 Jul 2017 17:20:55 +0000 (13:20 -0400)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Thu, 20 Jul 2017 16:57:59 +0000 (12:57 -0400)
commit13c81489622b866f4b4fcbd51707ab4c09e1c8db
tree4d6d90948eb7a5d55b9599d45848841aff3e8b69
parentcd21b334943719f880e707eb91895fc916a88000
media: dvb-frontends/stv0910: Fix possible buffer overflow

Fixes smatch error:

  drivers/media/dvb-frontends/stv0910.c:715 dvbs2_nbch() error: buffer overflow 'nbch[fectype]' 2 <= 28

Also, fixes the nbch array table by adding the DUMMY_PLF element at the top
to match the enums (table element order was off by one before).

Patch sent upstream aswell.

Cc: Ralph Metzler <rjkm@metzlerbros.de>
Signed-off-by: Daniel Scheller <d.scheller@gmx.net>
Tested-by: Richard Scobie <r.scobie@clear.net.nz>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/dvb-frontends/stv0910.c