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 a possible data race in userAgentString getter #329

Merged
merged 1 commit into from
Jan 10, 2022

Conversation

vayesh
Copy link
Contributor

@vayesh vayesh commented Jan 10, 2022

More robust solution for userAgentString optimization.

Previous implementation has a race condition: nullptr access could occur during dylib loading.

Fixes #327.

@vayesh vayesh marked this pull request as ready for review January 10, 2022 10:50
@vayesh vayesh merged commit 5d5b314 into main Jan 10, 2022
@vayesh vayesh deleted the vesh93/user_agent_null_ptr branch January 10, 2022 11:30
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.

🐞 [iOS] Crash in -[NSUserDefaults(MME) mme_userAgentString]_block_invoke
2 participants