Skip to content

Commit 2a6dee0

Browse files
authored
Fix potential strlen crash on NULL betaToken (#6083)
* Fix potential strlen crash on NULL betaToken * Add CHANGELOG * restart CI
1 parent d4a24bd commit 2a6dee0

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

Crashlytics/CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# v4.3.1
2+
- [fixed] Fixed a segmentation fault that could occur when writing crash contexts to disk (#6048).
3+
14
# v4.3.0
25

36
- [changed] Add dispatch_once for opening sdk log file. (#5904)

Crashlytics/Crashlytics/Components/FIRCLSContext.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ FIRCLSContextInitData FIRCLSContextBuildInitData(FIRCLSInternalReport* report,
7272
initData.maxErrorLogSize = [settings errorLogBufferSize];
7373
initData.maxLogSize = [settings logBufferSize];
7474
initData.maxKeyValues = [settings maxCustomKeys];
75+
initData.betaToken = "";
7576

7677
// If this is set, then we could attempt to do a synchronous submission for certain kinds of
7778
// events (exceptions). This is a very cool feature, but adds complexity to the backend. For now,

0 commit comments

Comments
 (0)