Skip to content

fix(apple): Bound Mach-O load command parsing - #2065

Merged
jpnurmi merged 3 commits into
masterfrom
jpnurmi/fix/macho-command-bounds
Sep 4, 2026
Merged

fix(apple): Bound Mach-O load command parsing#2065
jpnurmi merged 3 commits into
masterfrom
jpnurmi/fix/macho-command-bounds

Conversation

@jpnurmi

@jpnurmi jpnurmi commented Sep 4, 2026

Copy link
Copy Markdown
Collaborator

Keep each load command within sizeofcmds and validate command-specific sizes before reading segment or UUID data. This mirrors the bounds-checked load command walk used in sentry_crash_daemon.c.

Close: NATIVE-220

@linear-code

linear-code Bot commented Sep 4, 2026

Copy link
Copy Markdown

NATIVE-220

Keep each load command within sizeofcmds and validate command-specific sizes
before reading segment or UUID data.

This mirrors the bounds-checked load command walk used by the native crash
daemon.

Close: NATIVE-220
@jpnurmi
jpnurmi force-pushed the jpnurmi/fix/macho-command-bounds branch from dab6818 to 580c5ef Compare September 4, 2026 12:12
@codecov

codecov Bot commented Sep 4, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 46.66667% with 8 lines in your changes missing coverage. Please review.
✅ Project coverage is 74.32%. Comparing base (fe7f471) to head (0f60d58).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2065      +/-   ##
==========================================
- Coverage   74.41%   74.32%   -0.09%     
==========================================
  Files         103      103              
  Lines       26734    26742       +8     
  Branches     4868     4873       +5     
==========================================
- Hits        19893    19877      -16     
- Misses       5500     5513      +13     
- Partials     1341     1352      +11     
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@jpnurmi
jpnurmi merged commit 425b48e into master Sep 4, 2026
71 checks passed
@jpnurmi
jpnurmi deleted the jpnurmi/fix/macho-command-bounds branch September 4, 2026 17:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants