why is one case in switch cases repeated? #4417
Unanswered
anzosasuke
asked this question in
Q&A
Replies: 1 comment
-
If you have a fall-through with no instructions, compilers will generally generate the same jump address for both cases. From what I understand, Ghidra uses this fact to show the fall-through in the decompiled code, merging the cases that jump to the same address. Apparently you don't have this behavior so the first question that comes to mind is: are the cases 7 and 8 jumping to the same address ? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
So I have a C script which look like this:
And Now my case 7 and case 9 are repeated in getCases() method. Why is that?
I am trying to find out, which case don't have body/ or are empty like case 7 and 9 above.
My code snippets:
Jtables = res.getHighFunction().getJumpTables() Jtables[0].getCases()[0]
Beta Was this translation helpful? Give feedback.
All reactions