diff options
| author | David Howells <[email protected]> | 2015-09-11 20:07:36 +0000 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2015-09-11 22:21:34 +0000 |
| commit | 7c0d35a339db612aae5496424030307128f088a9 (patch) | |
| tree | 4b5c12baf5221d49fec2d2670d169059aa397247 /scripts/extract-cert.c | |
| parent | Merge tag 'sound-fix-4.3-rc1' of git://git.kernel.org/pub/scm/linux/kernel/gi... (diff) | |
| download | kernel-7c0d35a339db612aae5496424030307128f088a9.tar.gz kernel-7c0d35a339db612aae5496424030307128f088a9.zip | |
MODSIGN: fix a compilation warning in extract-cert
Fix the following warning when compiling extract-cert:
scripts/extract-cert.c: In function `write_cert':
scripts/extract-cert.c:89:2: warning: format not a string literal and no format arguments [-Wformat-security]
ERR(!i2d_X509_bio(wb, x509), cert_dst);
^
whereby the ERR() macro is taking cert_dst as the format string. "%s"
should be used as the format string as the path could contain special
characters.
Signed-off-by: David Howells <[email protected]>
Reported-by: Jim Davis <[email protected]>
Acked-by : David Woodhouse <[email protected]>
Cc: James Morris <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'scripts/extract-cert.c')
| -rw-r--r-- | scripts/extract-cert.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/extract-cert.c b/scripts/extract-cert.c index fd0db015c65c..10d23ca9f617 100644 --- a/scripts/extract-cert.c +++ b/scripts/extract-cert.c @@ -86,7 +86,7 @@ static void write_cert(X509 *x509) ERR(!wb, "%s", cert_dst); } X509_NAME_oneline(X509_get_subject_name(x509), buf, sizeof(buf)); - ERR(!i2d_X509_bio(wb, x509), cert_dst); + ERR(!i2d_X509_bio(wb, x509), "%s", cert_dst); if (kbuild_verbose) fprintf(stderr, "Extracted cert: %s\n", buf); } |
