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

Different CFG determination #116

Open
wideglide opened this issue Sep 24, 2023 · 1 comment
Open

Different CFG determination #116

wideglide opened this issue Sep 24, 2023 · 1 comment
Labels
question Further information is requested

Comments

@wideglide
Copy link

Any ideas on why I would be getting different generation for the control flow graph of these two functions? These are from two versions of busybox, exported with IDA 8.3 and the f9409a7 commit. I'm not sure where to begin to look for the apparent non-determinism? I haven't reviewed IDA's representation, but I thought BinDiff computed its own control flow.

image

Here's a second discrepancy from the same diff as well.

image

@cblichmann
Copy link
Member

That indeed looks somewhat surprising. However, BinExport still relies on IDA's representation. In AnalyzeFlow(), we simply follow its internal representation and do some fix-ups. So if IDA has spurious basic blocks, BinExport will have them as well.

@cblichmann cblichmann added the question Further information is requested label Sep 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants