summaryrefslogtreecommitdiff
path: root/util/kconfig/menu.c
diff options
context:
space:
mode:
authorJacob Garber <jgarber1@ualberta.ca>2019-07-23 11:55:04 -0600
committerPatrick Georgi <pgeorgi@google.com>2019-07-25 16:03:53 +0000
commite24585c834598720cd925592ffd80af6e9f74f83 (patch)
tree5660f33d43fe76a889c6658a52521377feb700f5 /util/kconfig/menu.c
parent17887d08fee6d10bc4ff8758694b88435365e5d7 (diff)
soc/rockchip/rk3399: Use 64 bits in multiplication
This multiplication is of the form u64 = u32 * u32. Despite being stored in a 64 bit variable, the intermediate value is still calculated using 32 bit math, which could possibly overflow. Cast one of the variables to a u64 to ensure it uses 64 bit math instead to avoid this. Change-Id: Ib08624812e933fdca5a51150ab36d3be49383326 Signed-off-by: Jacob Garber <jgarber1@ualberta.ca> Found-by: Coverity CID 1375443 Reviewed-on: https://review.coreboot.org/c/coreboot/+/34524 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Julius Werner <jwerner@chromium.org> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Diffstat (limited to 'util/kconfig/menu.c')
0 files changed, 0 insertions, 0 deletions