diff options
author | Jacob Garber <jgarber1@ualberta.ca> | 2019-04-11 21:08:04 -0600 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2019-08-20 18:22:09 +0000 |
commit | f5238b243fbb8314b8e5d26e7c8279b8e9d28c94 (patch) | |
tree | 85a560f987d3bb7d1e39e5e9a64043affe84e716 /util/kconfig/check.sh | |
parent | 64d8b9decf8fe51e13ef5e5e89c71682f1696608 (diff) |
nb/via/vx900: Ensure memory size and base are in range
We need to ensure uma_memory_size and uma_memory_base stay within a
32-bit address range. Both of these variables are 64 bits wide, so it is
simplest to use 64 bit math when doing the bit shifts and then check if
they are in range after.
Change-Id: Idd180f31e8cff797a6499b12bc685daa993aae05
Signed-off-by: Jacob Garber <jgarber1@ualberta.ca>
Found-by: Coverity CID 1229665, 1229666
Reviewed-on: https://review.coreboot.org/c/coreboot/+/32291
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Diffstat (limited to 'util/kconfig/check.sh')
0 files changed, 0 insertions, 0 deletions