Skip to content

Bitfield resolution in MLIL/HLIL #7533

@emesare

Description

@emesare

What is the feature you'd like to have?
I would like to see resolved accesses to bitfields in HLIL, since we now can express them (bitfields) in our type system.

Is your feature request related to a problem?
Currently you must do math in your head to determine the accessed bitfield, for example:

Image

The above is setting the first member a to 1 and 4 respectively for each structure.

Another, more annotated example:

MLIL listing:
Image

Types:
Image

Additional Information:
We also likely want to stop showing the first member being accessed, e.g. a in the examples above, and show either no access (the structure itself is loaded into the register) or some anonymous access, so that users do not get confused as to what is really getting accessed.

The above binary is available with: echo nebula rises persistently

Metadata

Metadata

Assignees

No one assigned

    Labels

    Core: HLILIssue involves High Level ILCore: MLILIssue involves Medium Level ILEffort: HighIssues require > 1 month of workImpact: MediumIssue is impactful with a bad, or no, workaroundUI: LinearIssues with the Linear view

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions