GP-4932 fixed code unit insertion issue

This commit is contained in:
ghidra007 2024-09-16 17:47:31 +00:00
parent e5aa0e8e5b
commit 6db5e3017e

View File

@ -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);
}