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

Bindiff: remove time.sleep() #2

Open
montyly opened this issue Oct 19, 2017 · 1 comment
Open

Bindiff: remove time.sleep() #2

montyly opened this issue Oct 19, 2017 · 1 comment
Labels
Projects

Comments

@montyly
Copy link
Member

montyly commented Oct 19, 2017

https://github.com/trailofbits/ethersplay/blob/5b329b122351af6aba53098d15cb5e501b2f3a30/ethersplay/bindiff.py#L136-L137

view_diff.update_analysis_and_wait() does not wait for the end of the update. Find how to wait without having the main thread sleeping.

@montyly montyly added the bug label Oct 19, 2017
@joshwatson
Copy link
Contributor

You're going to have trouble doing this easily, because update_analysis_and_wait() is going to return as soon as the first analysis pass completes, which is prior to the initial analysis is kicked off by the BinaryView. What you should probably do is consider using an AnalysisCompletionEvent or a BinaryDataNotification callback.

@joshwatson joshwatson added this to To do in Ethersplay Oct 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Ethersplay
  
To do
Development

No branches or pull requests

2 participants