summaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorJulius Werner <jwerner@chromium.org>2022-12-14 03:59:18 -0800
committerYu-Ping Wu <yupingso@google.com>2022-12-15 02:53:45 +0000
commit2cf2bd81974722114b74e1880425b9921f38a7f9 (patch)
tree678737c2b3a9896ea8848d802451057139871373 /Documentation
parent4a0e5e47418b08a807a3df13a281546e9929a734 (diff)
mem_chip_info: Fix potential overflow
The calculation for mem_chip_info_total_density_bytes() may already overflow in the intermediate 32-bit calculations before being assigned to the 64-bit result variable. Fix that. Fixes Coverity issue: CID 1501510 BRANCH=corsola Signed-off-by: Julius Werner <jwerner@chromium.org> Change-Id: I73da014c953381974c6ede2b17586b68675bde2d Reviewed-on: https://review.coreboot.org/c/coreboot/+/70764 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Yu-Ping Wu <yupingso@google.com>
Diffstat (limited to 'Documentation')
0 files changed, 0 insertions, 0 deletions