Skip to content
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 crash when passing %n #294

Merged
merged 2 commits into from
Nov 30, 2022
Merged

Fix crash when passing %n #294

merged 2 commits into from
Nov 30, 2022

Conversation

mrf7
Copy link

@mrf7 mrf7 commented Oct 28, 2022

Fix the crash and possible vulnerability by passing a static string as the message to _os_log_internal then using its string replacement to put the desired message in. Found solution in https://stackoverflow.com/a/64055996

Tested by passing %n as log message from both kotlin and swift in KaMPKit

@mrf7 mrf7 requested a review from kpgalligan October 28, 2022 15:10
@mrf7 mrf7 merged commit ea05457 into main Nov 30, 2022
@mrf7 mrf7 deleted the mrf/bugfix/266-percent-n-crash branch November 30, 2022 21:42
findjigar pushed a commit that referenced this pull request Oct 3, 2023
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.

2 participants