Skip to content

Sort switch cases in graph view #8146

@CouleeApps

Description

@CouleeApps

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

Image

Metadata

Metadata

Assignees

Labels

Effort: TrivialIssues require < 1 day of workImpact: LowIssue is a papercut or has a good, supported workaroundUI: GraphIssues with the FlowGraph class or Graph view

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions