-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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 FIRCLSContextInitData crash #11699
Fix FIRCLSContextInitData crash #11699
Conversation
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). View this failed invocation of the CLA check for more information. For the most up to date status, view the checks section at the bottom of the pull request. |
Thanks @kgrigsby59! Let me know if you run into any issues with signing the CLA. I'll trigger the CI workflows. |
|
@ncooke3 I'm having trouble with the CLA. My employer signed the CLA and added me to the authorized contributers with my work email. That email is not my primary GitHub one but is listed in my emails. |
@ncooke3 Is the failing check about the name being too long? |
@kgrigsby59 Sorry about the trouble with the CLA. Have you worked through the suggestions at https://github.com/firebase/firebase-ios-sdk/pull/11699/checks?check_run_id=16024717651? We can review and respond to other questions once the PR's CLA is sorted out. |
f6c2508
to
5b7f026
Compare
5b7f026
to
aef55cf
Compare
It looks like we need a CLA for the email address - [email protected] |
Yes, we're trying. My employer signed the agreement yesterday. And i'm added via a google group. But when I go to the link you provided it says the CLA is still missing. |
Can you check if the corporate agreement is still being processed? |
We'll check next week. cc: @morganchen12 |
It looks like the CLA is sorted out now. |
Just to verify, your commit email |
Yes |
@paulb777 Is there something I’m supposed to be doing to move this along? |
@kgrigsby59 sorry for the delay. Going to run a couple smoke tests and review this today |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for contributing this fix!
I'm getting a crash during startup using 10.13.0, 10.12.0, 10.3.0 and master.
This happens on an iPad (6th generation) running 16.6.
It happens all the time with our app when the Address Sanitizer is on and Detect use of stack after return is on.
The Problem
In [FIRCLSContextManager setupContextWithReport:settings:fileManager],
The Fix
In this PR I've made FIRCLSContextInitData a class and copy the strings into it instead of storing a pointer to the private buffer inside NSString that UTF8String returns. Being a class it will get captured in the async blocks and dealloc'ed after the last use.
Related tickets.
#8883
#10104
#9254
PR #10750