diff options
author | Jan Dabros <jsd@semihalf.com> | 2020-08-19 15:06:10 +0200 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2020-08-26 07:32:45 +0000 |
commit | fc83588e85c5ec080db368f30521e27f1535f34c (patch) | |
tree | 47f16c172a797b82726e69ebd8a11c04a2d0b840 /src/lib/compute_ip_checksum.c | |
parent | 28d4c2e9075ecc053cad32f6f8fdc706a30ccf26 (diff) |
lib/imd: Add an extra check for root_size
Add a check that root_size provided by the caller accounts for one
imd_entry necessary for covering imd_root region. Without this, we
may end up with writing on unallocated memory.
Signed-off-by: Jan Dabros <jsd@semihalf.com>
Change-Id: I0a39d56f7a2a6fa026d259c5b5b78def4f115095
Reviewed-on: https://review.coreboot.org/c/coreboot/+/44665
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Paul Fagerburg <pfagerburg@chromium.org>
Diffstat (limited to 'src/lib/compute_ip_checksum.c')
0 files changed, 0 insertions, 0 deletions