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

[PLAT-6629] Fix crash if app dSYM UUID could not be found #1101

Merged
merged 4 commits into from
May 28, 2021

Conversation

nickdowell
Copy link
Contributor

Goal

See #1097

Changeset

The dsymUUIDs array is now accessed using the safer firstObject method rather than subscripting.

The app's main binary image is now identified by having a LC_MAIN (or LC_UNIXTHREAD) load command, rather than through potentially unreliable string matching.

The mach headers list is now initialized on demand, since it was found that the app UUID is requested before bsg_mach_headers_register_for_changes() was being called.

Testing

The new method has been tested manually using a sample app. E2E tests verify that dsymUUIDs is present and not empty.

@github-actions
Copy link

Infer: No issues found 🎉

OCLint: No issues found 🎉

Bugsnag.framework binary size decreased by 128 bytes from 1,126,840 to 1,126,712 🎉

Generated by 🚫 Danger

@nickdowell nickdowell merged commit 67bd131 into next May 28, 2021
@nickdowell nickdowell deleted the nickdowell/app-uuid branch May 28, 2021 10:27
@nickdowell nickdowell mentioned this pull request Jun 2, 2021
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.

2 participants