Skip to content

Adding fields to a union in the type editor puts them at offsets #7159

@CouleeApps

Description

@CouleeApps

Version and Platform (required):

  • Binary Ninja Version: 5.1.7982
  • Edition: Ultimate
  • OS: Windows
  • OS Version: 11
  • CPU Architecture: x64

Bug Description:
When I make a Union type in the type editor, trying to click the last line and press Y to create a new member puts the member at the offset of the size of the union, rather than at 0 (where i would expect a union member to go)

Steps To Reproduce:

  1. Open any binary
  2. Open types
  3. Create a new union
  4. In the union press 4 and 8 and Y etc to create members
  5. Notice they add a bunch of padding instead of going at 0

Expected Behavior:
I expected unions specifically to put new members at offset 0

Screenshots/Video Recording:
Image

Metadata

Metadata

Assignees

Labels

Component: UIIssue needs changes to the user interfaceEffort: LowIssues require < 1 week of workImpact: MediumIssue is impactful with a bad, or no, workaroundUI: TypesIssues with the Types widget

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions