Ghidra is a software reverse engineering (SRE) framework
GP-5430 Updated the PE ImageRuntimeFunctionEntry structures to make EndAddress a Dword since it is really the address after the end of the given function and was causing bad references and code to be created.
ghidra007a19d6ab45996
diff --git a/Ghidra/Features/Base/src/main/java/ghidra/app/util/bin/format/pe/ImageRuntimeFunctionEntries_X86.java b/Ghidra/Features/Base/src/main/java/ghidra/app/util/bin/format/pe/ImageRuntimeFunctionEntries_X86.javaindex 60df8f004a..e96c26e731 100644--- a/Ghidra/Features/Base/src/main/java/ghidra/app/util/bin/format/pe/ImageRuntimeFunctionEntries_X86.java+++ b/Ghidra/Features/Base/src/main/java/ghidra/app/util/bin/format/pe/ImageRuntimeFunctionEntries_X86.java@@ -4,9 +4,9 @@* Licensed under the Apache License, Version 2.0 (the "License");* you may not use this file except in compliance with the License.* You may obtain a copy of the License at- *+ ** http://www.apache.org/licenses/LICENSE-2.0- *+ ** Unless required by applicable law or agreed to in writing, software* distributed under the License is distributed on an "AS IS" BASIS,* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.@@ -109,7 +109,8 @@ public class ImageRuntimeFunctionEntries_X86 implements ImageRuntimeFunctionEntrIOException, DuplicateNameException {StructureDataType struct = new StructureDataType("_IMAGE_RUNTIME_FUNCTION_ENTRY", 0);struct.add(StructConverter.IBO32, "BeginAddress", null);- struct.add(StructConverter.IBO32, "EndAddress", null);+ struct.add(StructConverter.DWORD, "EndAddress",+ "Apply ImageBaseOffset32 to see reference");struct.add(StructConverter.IBO32, "UnwindInfoAddressOrData", null);ArrayDataType arr = new ArrayDataType(struct, functionEntries.size(), struct.getLength());