Skip to content

Commit 37073b6

Browse files
author
Michael Lehenbauer
committed
Fix userID memory corruption and tweak changelog.
1 parent 1c94cc3 commit 37073b6

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Firestore/CHANGELOG.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22

33
# v0.10.3
44
- [fixed] Fixed a regression in the 4.10.0 Firebase iOS SDK release that
5-
prevented the SDK from communicating with the backend until successfully
6-
authenticating via Firebase Authentication. All reads and writes would
7-
silently be executed only locally rather than being sent as unauthenticated
8-
requests.
5+
prevented the SDK from communicating with the backend before successfully
6+
authenticating via Firebase Authentication or after unauthenticating and
7+
re-authenticating. Reads and writes would silently be executed locally
8+
but not sent to the backend.
99

1010
# v0.10.2
1111
- [changed] When you delete a FirebaseApp, the associated Firestore instances

Firestore/Source/Local/FSTLevelDBMutationQueue.mm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ @implementation FSTLevelDBMutationQueue {
9494
+ (instancetype)mutationQueueWithUser:(const User &)user
9595
db:(std::shared_ptr<DB>)db
9696
serializer:(FSTLocalSerializer *)serializer {
97-
NSString *userID = user.is_authenticated() ? util::WrapNSStringNoCopy(user.uid()) : @"";
97+
NSString *userID = user.is_authenticated() ? util::WrapNSString(user.uid()) : @"";
9898

9999
return [[FSTLevelDBMutationQueue alloc] initWithUserID:userID db:db serializer:serializer];
100100
}

0 commit comments

Comments
 (0)