Skip to content

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

Merged
bdash merged 2 commits into
devfrom
test_xref_ranges_api
Oct 22, 2026
Merged

bdash merged 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
bdash force-pushed the test_xref_ranges_api branch from adcdcc7 to 77d1007 Compare October 20, 2026 23:25
@bdash
bdash requested a review from plafosse October 20, 2026 23:25
bdash added 2 commits October 21, 2026 21:13
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.
@bdash
bdash force-pushed the test_xref_ranges_api branch from 77d1007 to 556d04b Compare October 22, 2026 04:35
@bdash
bdash merged commit 556d04b into dev Oct 22, 2026
9 of 10 checks passed
@bdash
bdash deleted the test_xref_ranges_api branch October 22, 2026 04:36
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