coreboot/util/ifdtool
Yu-Ping Wu e24b7c72cc util/ifdtool: Fix invalid pointer dereference
When calculating the GPR0 protection range, currently the offsets of
"CSE data partition offset" and FPT are not checked. Invalid pointer
dereference may lead to segmentation fault.

Ensure the offset is within the image size before accessing the pointer.

Change-Id: Ic9557d8fc8ae9e4c12114ee170bfc90d5e149df9
Signed-off-by: Yu-Ping Wu <yupingso@chromium.org>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/85016
Reviewed-by: Subrata Banik <subratabanik@google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Alexander Goncharov <chat@joursoir.net>
2024-11-13 23:31:55 +00:00
..
.gitignore .gitignore: Ignore .test/.dependencies globally 2020-10-31 18:21:36 +00:00
description.md util: Add description.md to each util 2018-07-26 13:26:50 +00:00
ifdtool.c util/ifdtool: Fix invalid pointer dereference 2024-11-13 23:31:55 +00:00
ifdtool.h util/ifdtool: Add Panther Lake platform support under IFDv2 2024-06-21 03:20:46 +00:00
Makefile util: Rename Makefiles from .inc to .mk 2024-01-26 12:43:18 +00:00
Makefile.mk util: Rename Makefiles from .inc to .mk 2024-01-26 12:43:18 +00:00