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(recording): corrected string comparison of thread name #721

Merged
merged 3 commits into from
Jun 26, 2020

Conversation

tomlongridge
Copy link
Contributor

@tomlongridge tomlongridge commented Jun 25, 2020

Goal

Fixes incorrect string comparison in mach exception handling. There doesn't seem to be a functional problem with the existing implementation (presumably the same char sequence is used in memory through compiler optimization), but this PR makes it certain and avoids new static compile error in Xcode 12.

Changeset

  • BSG_KSCrashSentry_MachException.c - amended string comparison to use strcmp rather than equality.
  • BSG_KSCrash.m - adding missing "@" to DEBUG log call.

Tests

Verified through log messages that secondary thread is getting suspended as intended.

Copy link
Contributor

@fractalwrench fractalwrench left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, missing a changelog entry

@tomlongridge tomlongridge force-pushed the tom/fix-string-comparison-mach-exceptions branch from 8642f2b to 1d40a38 Compare June 26, 2020 09:20
@tomlongridge tomlongridge merged commit 5e9ef85 into master Jun 26, 2020
@tomlongridge tomlongridge deleted the tom/fix-string-comparison-mach-exceptions branch June 26, 2020 11:18
@tomlongridge tomlongridge mentioned this pull request Jun 29, 2020
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