Skip to content

Redundant Size Suffixes #7991

@ElykDeer

Description

@ElykDeer

Version and Platform (required):

  • Binary Ninja Version: 5.3.9208
  • Edition: Ultimate
  • OS: OSX
  • OS Version: 26.3
  • CPU Architecture: M3

Bug Description:
(There are two bugs here) When using the magic structure creation workflow on the following binary (starting at the malloc call at the end of the first basic block), Binary Ninja creates a double on a field that's used in a four-byte assignment and a 4-byte read. It then renders those reads as var.d.d (which is the bug I'm filing for).

Steps To Reproduce:

  1. Open attached binary
  2. Click s on the malloc near the end of the first basic block
  3. Press s on the rest of the offset annotations
  4. Renders redundant .d's on accesses

Expected Behavior:
We should only show one .d

Screenshots/Video Recording:

Image

Binary:
structure.elf.zip

Additional Information:
When you correct the type to a float from a double, it renders correctly. But I feel like we shouldn't ever display .d.d

Metadata

Metadata

Assignees

No one assigned

    Labels

    Component: CoreIssue needs changes to the coreCore: HLILIssue involves High Level ILEffort: TrivialIssues require < 1 day of workImpact: LowIssue is a papercut or has a good, supported workaround

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions