Skip to content

Fix EXC_BAD_ACCESS in GDTCORLogAssert when path contains % characters - #173

Merged
paulb777 merged 2 commits into
mainfrom
fix/issue-16455
Jul 27, 2026
Merged

Fix EXC_BAD_ACCESS in GDTCORLogAssert when path contains % characters#173
paulb777 merged 2 commits into
mainfrom
fix/issue-16455

Conversation

@paulb777

@paulb777 paulb777 commented Jul 26, 2026

Copy link
Copy Markdown
Member

May fix firebase/firebase-ios-sdk#16455. If not, this fix still makes sense.

When a user's project path contained a % character, the compile-time absolute path FILE macro embedded into the binary also contained a % character. When an assertion triggered in GDTCORPlatform.m, the path was injected unsafely into a format string and passed to NSLogv, causing an EXC_BAD_ACCESS null pointer dereference.

This PR fixes the issue by pre-formatting the variadic arguments into a message string and safely supplying the formatting parameters directly to NSLog.

@paulb777

Copy link
Copy Markdown
Member Author

CI failures look like flakes #172

@paulb777
paulb777 requested a review from ncooke3 July 26, 2026 16:16
@paulb777
paulb777 merged commit 840d723 into main Jul 27, 2026
20 of 21 checks passed
@paulb777
paulb777 deleted the fix/issue-16455 branch July 27, 2026 15:39
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.

App crashes at runtime during launch with a EXC_BAD_ACCESS ERROR

2 participants