fix null pointer dereference in get_frame_base() in librz/debug/p/native/bt/windows-x64.c (#6829)

This commit is contained in:
Syh-Xiong
2026-10-03 10:36:06 +08:00
committed by GitHub
parent 2b8aa1a5f2
commit 4b103d16f1
+1 -1
View File
@@ -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) {