From 6db5e3017eb679c26698249bd6efb4cc72c8d6b1 Mon Sep 17 00:00:00 2001 From: ghidra007 Date: Mon, 16 Sep 2024 17:47:31 +0000 Subject: [PATCH] GP-4932 fixed code unit insertion issue --- .../ghidra_scripts/classrecovery/RecoveredClassHelper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Ghidra/Features/Decompiler/ghidra_scripts/classrecovery/RecoveredClassHelper.java b/Ghidra/Features/Decompiler/ghidra_scripts/classrecovery/RecoveredClassHelper.java index c6d1e0c2c5..d3fdf6194a 100644 --- a/Ghidra/Features/Decompiler/ghidra_scripts/classrecovery/RecoveredClassHelper.java +++ b/Ghidra/Features/Decompiler/ghidra_scripts/classrecovery/RecoveredClassHelper.java @@ -4527,7 +4527,7 @@ public class RecoveredClassHelper { // apply the structure. It has to be one or the other and the correct length // because of the check at the beginning of the script that checked for either // array or structure of pointers and got size from them initially - api.clearListing(vftableAddress); + api.clearListing(vftableAddress, vftableAddress.add(vftableStruct.getLength() - 1)); api.createData(vftableAddress, vftableStruct); }