Commit graph

3 commits

Author SHA1 Message Date
ghidra_blue
7db176b2bd GP-3952 Updated the script categories to simplify and reduce the number of folders. 2025-06-13 15:00:15 +00:00
johanngan
680a7640cd Handle conditional computed jumps in SwitchOverride.java
SwitchOverride.java is one of the recommended ways to fix switch
statements in the decompiler when there are too many branches
(GhidraDocs/GhidraClass/Advanced/improvingDisassemblyAndDecompilation)

Currently the indirect jump is only allowed to be an unconditional
computed jump (or a call). However, compilers can sometimes implement
switch statements using conditional indirect jumps (via conditional
loads, conditional adds, etc.) if the target architecture supports them
(e.g., ARM). In this case, SwitchOverride.java will fail because the
instruction flow type will be RefType.CONDITIONAL_COMPUTED_JUMP rather
than the expected RefType.COMPUTED_JUMP, even though both should be
equally acceptable.
2022-11-13 20:22:02 -06:00
Dan
79d8f164f8 Candidate release of source code. 2019-03-26 13:46:51 -04:00