Skip to content

Add queries for code and data references into and out of an address range - #8657

Open
bdash wants to merge 2 commits into
devfrom
test_xref_ranges_api
Open

bdash wants to merge 2 commits into
devfrom
test_xref_ranges_api

Conversation

@bdash

@bdash bdash commented Oct 13, 2026

Copy link
Copy Markdown
Contributor

Previously, range queries for references returned only one end of each reference, so a caller could not tell which source in a range made which reference.

Now BinaryView has GetIncomingCodeReferences, GetIncomingDataReferences, GetOutgoingCodeReferences and GetOutgoingDataReferences, which return CodeXref and DataXref pairs. Python and Rust gain matching methods.

bdash added 2 commits October 12, 2026 18:03
Previously, each method that passed or received a `BNReferenceSource`
converted it by hand.
…ange

Previously, range queries for references returned only one end of each
reference, so a caller could not tell which source in a range made
which reference.

Now `BinaryView` has `GetIncomingCodeReferences`,
`GetIncomingDataReferences`, `GetOutgoingCodeReferences` and
`GetOutgoingDataReferences`, which return `CodeXref` and `DataXref`
pairs. Python and Rust gain matching methods.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant