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

Dev python3 #25

Open
wants to merge 1 commit into
base: dev-python3
Choose a base branch
from
Open

Dev python3 #25

wants to merge 1 commit into from

Conversation

paxcut
Copy link

@paxcut paxcut commented Feb 19, 2021

changes to fix #24

@paxcut paxcut changed the base branch from master to dev-python3 February 21, 2021 09:10
Copy link

@IdanH101 IdanH101 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I approve that this change in fact solves the timeout problem after analysing in windows 10, IDA pro 7.5

if os.name != 'posix':
(out, err) = p.communicate()
out = out.decode('utf-8')
err = err.decode('utf-8')

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

err may sometimes be None, you can fix this with

if os.name != 'posix':
    (out, err) = p.communicate()
    if out is not None:
        out = out.decode('utf-8')
    #else:
    #    print("GhIDA:: [DEBUG] out from process is None")
    if err is not None:
        err = err.decode('utf-8')
    #else:
    #    print("GhIDA:: [DEBUG] err from process is None")

@Ivanmatthew
Copy link

Ivanmatthew commented Sep 18, 2023

Your fix also works with python2 version. Thank you.

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.

Ghidra headless analysis failed
3 participants