Skip to content

fix(changeUserPwd/run-passwd.cpp): format security#6

Open
Xeonacid wants to merge 2 commits intoukui:Debianfrom
Xeonacid:patch-1
Open

fix(changeUserPwd/run-passwd.cpp): format security#6
Xeonacid wants to merge 2 commits intoukui:Debianfrom
Xeonacid:patch-1

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 <jan.steffens@gmail.com>
@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