coreboot-kgpe-d16/src/commonlib/bsd
Julius Werner 2cf2bd8197 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>
2022-12-15 02:53:45 +00:00
..
include/commonlib/bsd mem_chip_info: Fix potential overflow 2022-12-15 02:53:45 +00:00
cbfs_mcache.c commonlib/bsd: Remove cb_err_t 2022-03-09 02:18:21 +00:00
cbfs_private.c cbfs/vboot: Adapt to new vb2_digest API 2022-09-02 23:51:29 +00:00
elog.c
lz4.c.inc
lz4_wrapper.c