-
Notifications
You must be signed in to change notification settings - Fork 125
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 running disconnect %%s
#554
Fix crash when running disconnect %%s
#554
Conversation
Code looks good, should be merged as this will fix potential security problems from taking place in the engine. |
Whoever merges this should add @Mauler125 as coauthor :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works, changes look good.
Preferably #553 should be implemented
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Running disconnect %%s
does not crash the client with this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Confirmed working in testing by running disconnect %%s
with and without the PR (with prints %s
, without crashes). No code review done.
Done o7 |
Closes #552
Basically we were running a string format and then passing the string to the original function, which would then try and format it again (and get bad args). By passing
"%s"
and then our formatted string we basically just protect the vanilla string format