Skip to content

Dev python3#25

Open
paxcut wants to merge 1 commit intoCisco-Talos:dev-python3from
paxcut:dev-python3
Open

Dev python3#25
paxcut wants to merge 1 commit intoCisco-Talos:dev-python3from
paxcut:dev-python3

Conversation

@paxcut
Copy link
Copy Markdown

@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
Copy Markdown

@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')
Copy link
Copy Markdown

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
Copy Markdown

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