Ghidra is a software reverse engineering (SRE) framework
GT-0_emteere bugfix - performance issue for function start patterns post function existence check
emteere74284a28204f
diff --git a/Ghidra/Features/BytePatterns/src/main/java/ghidra/app/analyzers/FunctionStartFuncAnalyzer.java b/Ghidra/Features/BytePatterns/src/main/java/ghidra/app/analyzers/FunctionStartFuncAnalyzer.javaindex 7d8f120da3..36ed32067e 100644--- a/Ghidra/Features/BytePatterns/src/main/java/ghidra/app/analyzers/FunctionStartFuncAnalyzer.java+++ b/Ghidra/Features/BytePatterns/src/main/java/ghidra/app/analyzers/FunctionStartFuncAnalyzer.java@@ -1,6 +1,5 @@/* ###* IP: GHIDRA- * REVIEWED: YES** Licensed under the Apache License, Version 2.0 (the "License");* you may not use this file except in compliance with the License.@@ -45,6 +44,11 @@ public class FunctionStartFuncAnalyzer extends FunctionStartAnalyzer {getOrCreatePotentialMatchPropertyMap(program).getAddressSet();set = set.intersect(potentialPreMatches);+ // no previous no-function existing pre-requisites to check+ if (set.isEmpty()) {+ return true;+ }+return super.added(program, set, monitor, log);}