Skip to content

Improve error handling for missing function matches #12

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

braindead-bf
Copy link

BinDiff can process BinExport files with errors and still generate a valid report. After loading such a report with python-bindiff, iterating through matched functions causes a KeyError to be thrown when iter_function_matches attempts to access a missing address within the primary or secondary FunctionBinExport file. This change logs an error whenever a missing address is encountered, but allows valid function matches to be returned.

@braindead-bf
Copy link
Author

Apologies for the other inconsequential changes; I use an auto-formatter.

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