From 4b103d16f1bd647e465fbd909c14481911a058ef Mon Sep 17 00:00:00 2001 From: Syh-Xiong <82537176+Syh-Xiong@users.noreply.github.com> Date: Sat, 3 Oct 2026 10:36:06 +0800 Subject: [PATCH] fix null pointer dereference in get_frame_base() in librz/debug/p/native/bt/windows-x64.c (#6829) --- librz/debug/p/native/bt/windows-x64.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/librz/debug/p/native/bt/windows-x64.c b/librz/debug/p/native/bt/windows-x64.c index ee866e12cd..cf7550a9d8 100644 --- a/librz/debug/p/native/bt/windows-x64.c +++ b/librz/debug/p/native/bt/windows-x64.c @@ -309,7 +309,7 @@ static ut64 get_frame_base(const Win64UnwindInfo *info, const struct context_typ // There is a register being used as a frame base, unknown if we set it yet int i; - Win64UnwindCode *code = NULL; + Win64UnwindCode *code = info->code; // Find unwind of where frame register is being set for (i = 0; i < info->CountOfCodes; i++) { if (code[i].UnwindOp == UWOP_SET_FPREG) {