-
Notifications
You must be signed in to change notification settings - Fork 115
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
[Bug] Crash in AuthResponse::error_code #737
Comments
@jonsimantov I agree. I remember noticing the fact that |
Oops, didn't mean to close this issue. Reopening. |
@dconeybe I wasn't thinking of changing the behavior of MarkFailed (overriding it in response_json) as it could affect other things, I figured I'd just fix it at the error_code() level. We can discuss it in the PR. |
@jonsimantov I built with #738 (4dc5c31) and confirmed that it fixes the issue |
Thanks so much for your help in tracking this down and testing the fix! The fix is merged into main now, and will be included in our next binary release (probably 8.8.0). |
[REQUIRED] Please fill in the following fields:
[REQUIRED] Please describe the issue here:
If an AuthRequest is cancelled or times out, calling
error_code()
on it causes a crash.Example stacktraces:
I believe this happens because of the timeout and cancelled branches of https://github.com/firebase/firebase-cpp-sdk/blob/main/app/rest/transport_curl.cc#L412, which both call MarkFailed instead of MarkCompleted. MarkFailed never sets application_data_, which leads to the bad access in error_code.
@dconeybe I believe this is another permutation of #615
The text was updated successfully, but these errors were encountered: