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 compilation with -Werror=format-security #3

Merged
merged 1 commit into from
Aug 24, 2022
Merged

Fix compilation with -Werror=format-security #3

merged 1 commit into from
Aug 24, 2022

Commits on Aug 14, 2022

  1. Fix compilation with -Werror=format-security

    This patch avoids using fprintf with a string variable, i.e.,
    fprintf(f, var). Such usage is discourage because if var can be
    attacker-controlled in any way, the application can be
    compromised. Therefore, -Werror=format-security complains about such
    usage.  Better use fputs, which can't be misused, even though in this
    case the printed string is a constant.
    RalfJung authored and davidebeatrici committed Aug 14, 2022
    Configuration menu
    Copy the full SHA
    4543a0b View commit details
    Browse the repository at this point in the history