Re: [PATCH 1/3] biosdisk: Fix handling of unknown partition types

2025-03-03 Thread Taylor R Campbell
> Date: Sun, 2 Mar 2025 15:18:07 +0300 > From: Vladimir Serbinenko > > On unknown partition types we end up dereferencing > a random pointer. Instead ensure that pointer is NULL > and skip it when it's NULL Thanks, I've filed PR port-amd64/59120: `x86 efiboot: uninitialized/null pointer deref w

[PATCH 1/3] biosdisk: Fix handling of unknown partition types

2025-03-02 Thread Vladimir Serbinenko
On unknown partition types we end up dereferencing a random pointer. Instead ensure that pointer is NULL and skip it when it's NULL --- sys/arch/i386/stand/efiboot/efidisk.c | 2 +- sys/arch/i386/stand/lib/biosdisk.c| 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/arch/