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 index into previous signal handlers table #1002

Merged
merged 1 commit into from
Feb 15, 2021

Conversation

kstenerud
Copy link
Contributor

Goal & design

A previous PR incorrectly used sigNum as an index into the bsg_g_previousSignalHandlers table. This PR derives the correct index.

Changeset

Added get_previous_sigaction(), which gets the correct index.

Testing

Testing must be done manually. Before this fix, the "Mach exception" button in the example app will cause the app to freeze after recording the event. With this fix in place, it will correctly terminate the app after recording the event.

Tested on real devices running iOS 12.5.1 and 13.

sigNum is the signal itself, not an index into the previous signal handlers list.
Get the actual index and use that instead.
@github-actions
Copy link

Infer: No issues found 🎉

OCLint: No issues found 🎉

Bugsnag.framework binary size did not change - 1,060,400 bytes

Generated by 🚫 Danger

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