diff options
| author | Colin Ian King <[email protected]> | 2019-06-27 04:05:41 -0400 |
|---|---|---|
| committer | Mauro Carvalho Chehab <[email protected]> | 2019-07-23 08:49:17 -0400 |
| commit | b98fd3cb6db8dbba6377c41a66c6b673f9d93da3 (patch) | |
| tree | cb8b308efdfaf21d6e2ba562d1487692ad53efa2 /tools/perf/scripts/python/export-to-postgresql.py | |
| parent | b61789f53d49db8ca1f6b8fed411b317b4e8f044 (diff) | |
media: vivid: fix potential integer overflow on left shift
There is a potential integer overflow when int 2 is left shifted
as this is evaluated using 32 bit arithmetic but is being used in
a context that expects an expression of type s64. Fix this by
generating a mask using GENMASK to avoid a 32 bit overflow.
Addresses-Coverity: ("Unintentional integer overflow")
Fixes: 8a99e9faa131 ("media: vivid: add HDMI (dis)connect RX emulation")
Fixes: 79a792dafac6 ("media: vivid: add HDMI (dis)connect TX emulation")
Signed-off-by: Colin Ian King <[email protected]>
Signed-off-by: Hans Verkuil <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions