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(changeUserPwd/run-passwd.cpp): format security #6

Open
wants to merge 2 commits into
base: Debian
Choose a base branch
from

Conversation

Xeonacid
Copy link

@Xeonacid Xeonacid commented Jan 19, 2022

Use g_error_new_literal instead of g_error_new, to fix the format string security issue.

Add "%s" format to g_error_new, to fix the format string security issue.
@heftig
Copy link

heftig commented Feb 12, 2022

Using g_error_new_literal instead of formatting is slightly better.

Co-authored-by: Jan Alexander Steffens <[email protected]>
@Xeonacid
Copy link
Author

@heftig fixed, thanks!

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