Skip to content
This repository has been archived by the owner on Feb 14, 2025. It is now read-only.

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

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants