Skip to content

Dev python3 - #25

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

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

Conversation

@paxcut

@paxcut paxcut commented Feb 19, 2021

Copy link
Copy Markdown

changes to fix #24

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

@IdanH101 IdanH101 left a comment

Copy link
Copy Markdown

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

Comment thread ghida_plugin/lib.py
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

Ivanmatthew commented Sep 18, 2023

Copy link
Copy Markdown

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