summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2018-06-05 17:51:07 +0100
committerCorey Minyard <cminyard@mvista.com>2018-09-18 16:15:33 -0500
commit97a103e6b584442cd848887ed8d47be2410b7e09 (patch)
tree541150ef74955d3c004171e3145febb498c70634 /tools/perf/scripts/python/export-to-postgresql.py
parent01508d9ebf4fc863f2fc4561c390bf4b7c3301a6 (diff)
ipmi_si: fix potential integer overflow on large shift
Shifting unsigned char b by an int type can lead to sign-extension overflow. For example, if b is 0xff and the shift is 24, then top bit is sign-extended so the final value passed to writeq has all the upper 32 bits set. Fix this by casting b to a 64 bit unsigned before the shift. Detected by CoverityScan, CID#1465246 ("Unintended sign extension") Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: Corey Minyard <cminyard@mvista.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions