ethersplay icon indicating copy to clipboard operation
ethersplay copied to clipboard

Bindiff: remove time.sleep()

Open montyly opened this issue 8 years ago • 1 comments

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 avatar Oct 19 '17 08:10 montyly

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 avatar Mar 08 '18 17:03 joshwatson