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

Ignore JMP and treat JX==JNX when diffing basic blocks #11

Open
cblichmann opened this issue Sep 21, 2023 · 1 comment
Open

Ignore JMP and treat JX==JNX when diffing basic blocks #11

cblichmann opened this issue Sep 21, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@cblichmann
Copy link
Member

Steps to reproduce the problem:

  1. Diff a program
  2. Open a function with some differences
  3. See some basic blocks which are marked as different only because of the jump at the end

What is the expected behavior?
See the following screenshot:
0j2Y7jD
In such cases, it would be helpful for the blocks to be marked as equal.

What went wrong?
They are marked as different.

What version of the product are you using? On what operating system?
BinDiff 6, Win10.

Ported from b/175509898

@cblichmann cblichmann added the enhancement New feature or request label Sep 21, 2023
@cblichmann
Copy link
Member Author

cblichmann commented Sep 21, 2023

These are actually two differeny things:

  1. Ignore unconditional jumps at the end of a basic block when computing the small primes product (SPP)
  2. Detect branch inversion

1 is easy to implement, for 2 we can either just treat all jumps the same or implement some heuristic that detects this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant