Vector35 / Vector35/binaryninja-api

Incorrect `typeinfo_name_for` definitions in mach-o binaries

Open
#4,959 5 comments 2 reactions 1 assignee View on GitHub

@emesare is already working on this.

Since Feb 7, 2025.

Effort: Trivial Impact: Low
Dominant language
C++
Stars
1.3k
Forks
298
Avg merge
5d 5h
Merged PRs (30d)
19

Description

Version and Platform (required):

  • Binary Ninja Version: 3.6.4790-dev, 10b89271
  • OS: macos
  • OS Version: 14.3
  • CPU Architecture: arm64

Bug Description:
BN does not defines typeinfo_name_for variables correctly.

Steps To Reproduce:

  1. Open attached binary
  2. Go to 100003f4a
  3. See the bug

It is not char typeinfo_name_for_Dog[0x0][0x0] it should be char typeinfo_name_for_Dog[0x5]. If I try to change type of that with Y it gives me char __ZTS3Dog[0x0]. Then when I try to set the type to char __ZTS3Dog[0x5] I got char typeinfo_name_for_Dog[0x0][0x5] which is not correct either.

Expected Behavior:
I expect BN to define those strings correctly.

Screenshots:

Additional Information:
Debug symbols did not removed.
classtest.zip

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.