-
Notifications
You must be signed in to change notification settings - Fork 281
Sort switch cases in graph view #8146
Copy link
Copy link
Open
Labels
Effort: TrivialIssues require < 1 day of workIssues require < 1 day of workImpact: LowIssue is a papercut or has a good, supported workaroundIssue is a papercut or has a good, supported workaroundUI: GraphIssues with the FlowGraph class or Graph viewIssues with the FlowGraph class or Graph view
Milestone
Metadata
Metadata
Assignees
Labels
Effort: TrivialIssues require < 1 day of workIssues require < 1 day of workImpact: LowIssue is a papercut or has a good, supported workaroundIssue is a papercut or has a good, supported workaroundUI: GraphIssues with the FlowGraph class or Graph viewIssues with the FlowGraph class or Graph view
What is the feature you'd like to have?
When a jump table gets disassembled, the case blocks are sorted left to right by block start address. If the cases do not map in order with the blocks, this will lead to the cases being in a confusing order in the graph layout. Note that this applies to Disassembly/LLIL/MLIL but not HLIL (which sorts by case number).
Is your feature request related to a problem?
I tried to reverse a switch table and all the cases were in a confusing order.
Are any alternative solutions acceptable?
Not sure
Additional Information:
Test binary: jumptable_multiple_indirect.zip