Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Non-Determinism in GetSymbolsByName API #6440

Closed
bpotchik opened this issue Feb 21, 2025 · 1 comment
Closed

Non-Determinism in GetSymbolsByName API #6440

bpotchik opened this issue Feb 21, 2025 · 1 comment
Assignees
Labels
Type: Bug Issue is a non-crashing bug with repro steps
Milestone

Comments

@bpotchik
Copy link
Member

Version and Platform (required):

  • Binary Ninja Version: Builds prior to 6419

Bug Description:
The get_functions_by_name API sometimes returns no results, even though a function by that name exists.
The get_symbols_by_name API returns a single symbol, which can be non-deterministic if multiple symbols of that name exist.

Steps To Reproduce:
Open our interprocedural_alias test binary.
Run the following:

>>> bv.get_functions_by_name('_main')
[]

Close the binary and reopen and try again:

>>> bv.get_functions_by_name('_main')
[<func: x86@0x1f5d>]
@bpotchik bpotchik self-assigned this Feb 21, 2025
@bpotchik bpotchik added the Type: Bug Issue is a non-crashing bug with repro steps label Feb 21, 2025
@bpotchik bpotchik added this to the Gallifrey milestone Feb 21, 2025
@bpotchik
Copy link
Member Author

Fixed in 4.3.6914-dev.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Issue is a non-crashing bug with repro steps
Projects
None yet
Development

No branches or pull requests

1 participant