Angel Pons has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/39387 )
Change subject: arch/x86/acpigen.c: Prevent null pointer dereference ......................................................................
arch/x86/acpigen.c: Prevent null pointer dereference
Change-Id: I7705d9a371b54f61b5050de34a05fe08a8989571 Signed-off-by: Angel Pons th3fanbus@gmail.com --- M src/arch/x86/acpigen.c 1 file changed, 5 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/87/39387/1
diff --git a/src/arch/x86/acpigen.c b/src/arch/x86/acpigen.c index a599b0e..0abab11 100644 --- a/src/arch/x86/acpigen.c +++ b/src/arch/x86/acpigen.c @@ -288,6 +288,11 @@ int dotcount = 0, i; int dotpos = 0;
+ if (!namepath) { + printk(BIOS_ERR, "%s: namepath is NULL!\n"); + return; + } + /* We can start with a ''. */ if (namepath[0] == '\') { acpigen_emit_byte('\');