diff options
| author | Colin Ian King <[email protected]> | 2021-09-30 11:27:48 +0100 |
|---|---|---|
| committer | Gerd Hoffmann <[email protected]> | 2021-10-29 08:26:23 +0200 |
| commit | 74c1bda2f3fa79a93e1c910008649b49b02dc09d (patch) | |
| tree | 15cc6ca9d9da1d80945e6c568afddd843a0efa06 /tools/perf/scripts/python | |
| parent | 8f4502fa284478a5264afa8a5a95511276fa9b80 (diff) | |
drm/virtio: fix another potential integer overflow on shift of a int
The left shift of unsigned int 32 bit integer constant 1 is evaluated
using 32 bit arithmetic and then assigned to a signed 64 bit integer.
In the case where value is 32 or more this can lead to an overflow
(value can be in range 0..MAX_CAPSET_ID (63). Fix this by shifting
the value 1ULL instead.
Addresses-Coverity: ("Uninitentional integer overflow")
Fixes: 4fb530e5caf7 ("drm/virtio: implement context init: support init ioctl")
Signed-off-by: Colin Ian King <[email protected]>
Link: http://patchwork.freedesktop.org/patch/msgid/[email protected]
Signed-off-by: Gerd Hoffmann <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions