Skip to content

AutoConstants and AutoSyscalls broken on latest Ghidra #3

@Legoclones

Description

@Legoclones

I'm seeing Auto Constants and Auto Syscalls is broken on latest Ghidra (10.3) with Java 17.0.7. Looks to be the same underlying issue.

AutoSyscalls.py:

Traceback (most recent call last):
  File "...\pwndra\AutoSyscalls.py", line 34, in <module>
    run()
  File "...\pwndra\AutoSyscalls.py", line 31, in run
    obj = Syscalls(currentProgram, currentSelection, monitor, arch, abi)
  File "...\pwndra\lib\Syscalls.py", line 735, in __init__
    res = self.getRegisterValue(call, reg)
  File "...\pwndra\lib\Syscalls.py", line 583, in getRegisterValue
    evaluate = ConstantPropagationContextEvaluator(True)
TypeError: ghidra.app.plugin.core.analysis.ConstantPropagationContextEvaluator(): 1st arg can't be coerced to ghidra.util.task.TaskMonitor

AutoConstants.py:

Traceback (most recent call last):
  File "...\pwndra\AutoConstants.py", line 33, in <module>
    run()
  File "...\pwndra\AutoConstants.py", line 30, in run
    obj = Constants(currentProgram, currentSelection, monitor, state, arch, abi)
  File "...\pwndra\lib\Constants.py", line 321, in __init__
    value = self.getParameterValue(func, call, arg[0])
  File "...\pwndra\lib\Constants.py", line 143, in getParameterValue
    return self.getRegisterValue(func, call, param.getRegister())
  File "...\pwndra\lib\Constants.py", line 63, in getRegisterValue
    evaluate = ConstantPropagationContextEvaluator(True)
TypeError: ghidra.app.plugin.core.analysis.ConstantPropagationContextEvaluator(): 1st arg can't be coerced to ghidra.util.task.TaskMonitor

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions