-
Notifications
You must be signed in to change notification settings - Fork 231
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
From AnalyzeFlow in binaryninja/main_plugin.cc:
const std::vector<BinaryNinja::ReferenceSource> xrefs =
view->GetCodeReferences(address);
[..]
for (const auto& xref : xrefs) {
flow_graph->AddEdge(
FlowGraphEdge(address, xref.addr, FlowGraphEdge::TYPE_SWITCH));This code thinks there's control flow from address to xref.addr, but GetCodeReferences returns references to, not from, an address:
/*! Get Code References to a virtual address
\param addr Address to check
\return vector of ReferenceSources referencing the virtual address
*/
std::vector<ReferenceSource> GetCodeReferences(uint64_t addr);This should be GetCodeReferencesFrom instead (although that has some additional complexity because it requires specifying a function).
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working