Skip to content

Move Ghidra scripts from Jython to PyGhidra#1757

Open
0x0ade wants to merge 3 commits intoaers:mainfrom
0x0ade:fix-pyghidra
Open

Move Ghidra scripts from Jython to PyGhidra#1757
0x0ade wants to merge 3 commits intoaers:mainfrom
0x0ade:fix-pyghidra

Conversation

@0x0ade
Copy link
Contributor

@0x0ade 0x0ade commented Mar 18, 2026

Fedora doesn't even ship Python 2 packages anymore, which pushed me to the edge to figure out what's going wrong with PyGhidra, and from my testing:

  • jpype picked the wrong overload on toAddr, so I simply wrapped it in a func that always explicitly casts to JLong first.
  • FunctionDB.updateFunction was choking because jpype failed to turn Python lists into something that implements the Java List interface. Dunno if it's even meant to do that out of the box. Explicitly using ArrayList solves this.

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.

1 participant