diff --git a/Ghidra/Features/GraphFunctionCalls/src/main/java/functioncalls/plugin/FcgProvider.java b/Ghidra/Features/GraphFunctionCalls/src/main/java/functioncalls/plugin/FcgProvider.java index 02516013f8..13b23b6bcb 100644 --- a/Ghidra/Features/GraphFunctionCalls/src/main/java/functioncalls/plugin/FcgProvider.java +++ b/Ghidra/Features/GraphFunctionCalls/src/main/java/functioncalls/plugin/FcgProvider.java @@ -1250,7 +1250,12 @@ public class FcgProvider @Override boolean isExpandable(FcgVertex vertex) { Iterable vertices = getVerticesByLevel(vertex.getLevel()); - return CollectionUtils.asStream(vertices).anyMatch(v -> v.canExpand()); + if (direction == IN) { + return CollectionUtils.asStream(vertices) + .anyMatch(FcgVertex::canExpandIncomingReferences); + } + return CollectionUtils.asStream(vertices) + .anyMatch(FcgVertex::canExpandOutgoingReferences); } } }