Home GnuPG

use g_debug(format, ...) safely
87e6811f2d1eUnpublished

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

use g_debug(format, ...) safely

* pinentry/password-cache.c (password_cache_clear): use g_debug safely
  in case error->message is malformed.

Without this change, with -Werror=format-security, we see:

password-cache.c: In function ‘password_cache_clear’:
password-cache.c:153:7: error: format not a string literal and no format arguments [-Werror=format-security]

g_debug(error->message);
^

Details

Provenance
dkgAuthored on Jun 2 2015, 4:52 AM
wernerCommitted on Jun 2 2015, 10:58 AM
Parents
rPec2bee55f9d5: Post release updates
Branches
Unknown
Tags
Unknown