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

Fix crashes in bsg_recordException() #1068

Merged
merged 1 commit into from
Apr 13, 2021

Conversation

nickdowell
Copy link
Contributor

Goal

Fixes some crashes that were observed in bsg_recordException() in the event of malloc failures.

Changeset

The result of malloc is now checked before dereferencing.

strdup() is no longer passed NULL values if -UTF8String returns NULL.

Testing

Manually verified that uncaught Objective-C exceptions are still reported with stacktrace, name and reason.

Was not able to reproduce the crash.

@github-actions
Copy link

Infer: No issues found 🎉

OCLint: No issues found 🎉

Bugsnag.framework binary size increased by 112 bytes from 1,119,408 to 1,119,520

Generated by 🚫 Danger

@nickdowell nickdowell merged commit 78f2ada into next Apr 13, 2021
@nickdowell nickdowell deleted the nickdowell/fix-crash-in-record-exception branch April 13, 2021 13:58
@nickdowell nickdowell mentioned this pull request Apr 14, 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.

3 participants