Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Overlapping relocations in MACH-O creating incorrect symbols #6387

Open
emesare opened this issue Feb 3, 2025 · 0 comments
Open

Overlapping relocations in MACH-O creating incorrect symbols #6387

emesare opened this issue Feb 3, 2025 · 0 comments
Labels
Component: Relocations File Format: Mach-O Impact: Medium Issue is impactful with a bad, or no, workaround State: Awaiting Triage Issue is waiting for more in-depth triage from a developer

Comments

@emesare
Copy link
Member

emesare commented Feb 3, 2025

Version and Platform (required):

  • Binary Ninja Version: 4.3.6732-dev

Bug Description:
Overlapping relocations (see picture) are seemingly breaking all extern entries after CFStringGetMaximumSizeForEncoding.

Steps To Reproduce:
Please provide all steps required to reproduce the behavior:

  1. Open provided binary (V35: glow flare chest)
  2. Go to .extern section
  3. Observe clearly wrong symbols

Expected Behavior:
The relocations should be pointing at the correct .extern entry!

Screenshots/Video Recording:
extern section is all screwed up after CFStringGetMaximumSizeForEncoding:
Image

Relocation info showing multiple overlapping relocations:
Image

Binary:
Binary available with glow flare chest

@emesare emesare added Component: Relocations File Format: Mach-O Impact: Medium Issue is impactful with a bad, or no, workaround State: Awaiting Triage Issue is waiting for more in-depth triage from a developer labels Feb 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: Relocations File Format: Mach-O Impact: Medium Issue is impactful with a bad, or no, workaround State: Awaiting Triage Issue is waiting for more in-depth triage from a developer
Projects
None yet
Development

No branches or pull requests

1 participant