Skip to content

Union field resolution displays wrong member #6643

Open
@whitequark

Description

@whitequark

Version and Platform (required):

  • Binary Ninja Version: 5.0.7220-dev Personal (ed97ee61)
  • OS: Debian Linux
  • OS Version: trixie
  • CPU Architecture: x64

Bug Description:
If I pick _Mypair._Myval2._Bx._Ptr as the field resolution for msvcp140.dll's type library's std::string, it appears that analysis consumes it as ._Ptr, but it is displayed as ._Buf.

Steps To Reproduce:
See attached file, e.g. at address 14000141a.

Expected Behavior:
Both analysis and Pseudo C/Rust display the field as ._Ptr.

Screenshots/Video Recording:

Image

_Ptr is the automatically assigned name.

Binary:
crackme.zip

Metadata

Metadata

Assignees

Labels

Component: CoreIssue needs changes to the coreEffort: LowIssue should take < 1 weekImpact: MediumIssue is impactful with a bad, or no, workaroundState: Awaiting TriageIssue is waiting for more in-depth triage from a developer

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions