GP-5916: Checking for IMAGE_FUNCTION_RUNTIME_ENTRY.BeginAddress != 0

before creating function (#8414)
This commit is contained in:
Ryan Kurtz 2025-08-19 07:18:43 -04:00
parent 729642cbf6
commit 105f9ef570

View file

@ -144,7 +144,7 @@ public class ImageRuntimeFunctionEntries_X86 implements ImageRuntimeFunctionEntr
*/ */
public void markup(Program program) throws DuplicateNameException, IOException { public void markup(Program program) throws DuplicateNameException, IOException {
if (!unwindInfo.hasChainedUnwindInfo()) { if (beginAddress != 0 && !unwindInfo.hasChainedUnwindInfo()) {
AbstractProgramLoader.markAsFunction(program, null, AbstractProgramLoader.markAsFunction(program, null,
program.getImageBase().add(beginAddress)); program.getImageBase().add(beginAddress));
} }