diff options
| author | Colin Ian King <[email protected]> | 2017-09-20 18:19:59 -0400 |
|---|---|---|
| committer | Mauro Carvalho Chehab <[email protected]> | 2017-12-14 09:51:17 -0500 |
| commit | a24e6348e5a0e8562ad64d760c25907ed088611c (patch) | |
| tree | 609d0b1b3772025a9514dea1398e95d70dad90e4 /tools/perf/scripts/python/event_analyzing_sample.py | |
| parent | 3ee6229f1a16ad80ac83f02614f46b70b7ecf666 (diff) | |
media: dvb_ca_en50221: sanity check slot number from userspace
Currently a user can pass in an unsanitized slot number which
will lead to and out of range index into ca->slot_info. Fix this
by checking that the slot number is no more than the allowed
maximum number of slots. Seems that this bug has been in the driver
forever.
Detected by CoverityScan, CID#139381 ("Untrusted pointer read")
Signed-off-by: Colin Ian King <[email protected]>
Reviewed-by: Dan Carpenter <[email protected]>
Reviewed-by: Jasmin Jessich <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions