From e9f5102a28d8abfe565dc2f1c56fb237c33e05e7 Mon Sep 17 00:00:00 2001 From: Josh Ferrell Date: Wed, 29 May 2024 13:12:10 -0400 Subject: Fix crash when reopening a binary with a valid X86_64_RELOC_SUBTRACTOR entry --- arch/x86/arch_x86.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/arch_x86.cpp b/arch/x86/arch_x86.cpp index cddce41d..a4bae9af 100644 --- a/arch/x86/arch_x86.cpp +++ b/arch/x86/arch_x86.cpp @@ -4272,8 +4272,8 @@ public: result[i].type = IgnoredRelocation; else { - result[i].next = &result[i + 1]; result[i + 1].type = IgnoredRelocation; + result[i].next = new BNRelocationInfo(result[i + 1]); i++; } break; -- cgit v1.3.1