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

NullPointerException during analysis #4

Open
anon8675309 opened this issue Nov 5, 2020 · 0 comments
Open

NullPointerException during analysis #4

anon8675309 opened this issue Nov 5, 2020 · 0 comments

Comments

@anon8675309
Copy link
Contributor

When analyzing FUN_140001030 of this binary I got this error:

go.py> Running...
Forwards analysis FUN_140001030
array(ghidra.program.model.listing.Parameter, [[undefined4 * param_1@RCX:8]])
Loop variants []
call: 14000103e
Forwards analysis _malloc_base
array(ghidra.program.model.listing.Parameter, [[ulonglong param_1@RCX:8]])
Loop variants []
call: 1400040ca
Traceback (most recent call last):
  File "/Users/ben/ghidra_scripts/go.py", line 67, in <module>
    argument_varnodes = PCodeInterpreter.analyzeFunctionForward(currentFunction, pci)
  File "/Users/ben/ghidra_scripts/PCodeInterpreter.py", line 738, in analyzeFunctionForward
    traverseForward(i, 0, pci, visited)
  File "/Users/ben/ghidra_scripts/PCodeInterpreter.py", line 700, in traverseForward
    traverseForward(child.getOutput(), depth + 1, pci, visited)
  File "/Users/ben/ghidra_scripts/PCodeInterpreter.py", line 700, in traverseForward
    traverseForward(child.getOutput(), depth + 1, pci, visited)
  File "/Users/ben/ghidra_scripts/PCodeInterpreter.py", line 696, in traverseForward
    pci.process(child, depth)
  File "/Users/ben/ghidra_scripts/PCodeInterpreter.py", line 96, in process
    self.store(inputs, output)
  File "/Users/ben/ghidra_scripts/PCodeInterpreter.py", line 324, in store
    for j in self.lookup_node(inputs[2]):
  File "/Users/ben/ghidra_scripts/PCodeInterpreter.py", line 574, in lookup_node
    self.get_node_definition(varnode)
  File "/Users/ben/ghidra_scripts/PCodeInterpreter.py", line 598, in get_node_definition
    self.process(defining_instruction, -1)
  File "/Users/ben/ghidra_scripts/PCodeInterpreter.py", line 116, in process
    self.call(inputs, output)
  File "/Users/ben/ghidra_scripts/PCodeInterpreter.py", line 439, in call
    parameter_varnodes = analyzeFunctionForward(called_func, pci_new)
  File "/Users/ben/ghidra_scripts/PCodeInterpreter.py", line 738, in analyzeFunctionForward
    traverseForward(i, 0, pci, visited)
  File "/Users/ben/ghidra_scripts/PCodeInterpreter.py", line 700, in traverseForward
    traverseForward(child.getOutput(), depth + 1, pci, visited)
  File "/Users/ben/ghidra_scripts/PCodeInterpreter.py", line 696, in traverseForward
    pci.process(child, depth)
  File "/Users/ben/ghidra_scripts/PCodeInterpreter.py", line 116, in process
    self.call(inputs, output)
  File "/Users/ben/ghidra_scripts/PCodeInterpreter.py", line 435, in call
    checkFixParameters(called_func, inputs[1:])
  File "/Users/ben/ghidra_scripts/PCodeInterpreter.py", line 619, in checkFixParameters
    hf = get_highfunction(func)
  File "/Users/ben/ghidra_scripts/PCodeInterpreter.py", line 610, in get_highfunction
    decompileResults = decompInterface.decompileFunction(func, 30, monitor)
	at ghidra.app.decompiler.DecompInterface.decompileFunction(DecompInterface.java:706)
	at jdk.internal.reflect.GeneratedMethodAccessor52.invoke(Unknown Source)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:567)
java.lang.NullPointerException: java.lang.NullPointerException

simple4.exe.zip

PS Sorry about the zip wrapper. GitHub doesn't allow EXE files to be uploaded, unless they are zipped first, then EXEs are just fine. 🙄 Thanks GitHub.

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

No branches or pull requests

1 participant