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

Stub by address, not by function name #51

Merged
merged 1 commit into from
Oct 24, 2023

Conversation

erdnaxe
Copy link
Contributor

@erdnaxe erdnaxe commented Sep 27, 2023

When using Rainbow with multiple complex binaries loaded in memory, it is common to have multiple function with the same name.

This patch proposes to change how Rainbow internally handle stubbing:

  • Before: user can only stub the first function matching the name given.
  • After: user can stub all function matching the name given, or a function by its address.

This also increases reproducibility of experiments conducted using Rainbow.

Note
This creates a breaking changes as emu.stubbed_functions will now contain function addresses.

@yhql yhql merged commit 02f944c into Ledger-Donjon:master Oct 24, 2023
3 checks passed
@erdnaxe erdnaxe deleted the stub_by_addr branch November 28, 2023 09:39
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.

2 participants