projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
crypto: user - fix info leaks in report API
[firefly-linux-kernel-4.4.55.git]
/
crypto
/
ahash.c
diff --git
a/crypto/ahash.c
b/crypto/ahash.c
index 3887856c2dd68490736eb17bca5d01eae9837aa0..793a27f2493e5287c1275df40feaca7b7b14c87e 100644
(file)
--- a/
crypto/ahash.c
+++ b/
crypto/ahash.c
@@
-404,7
+404,7
@@
static int crypto_ahash_report(struct sk_buff *skb, struct crypto_alg *alg)
{
struct crypto_report_hash rhash;
- s
nprintf(rhash.type, CRYPTO_MAX_ALG_NAME, "%s", "ahash"
);
+ s
trncpy(rhash.type, "ahash", sizeof(rhash.type)
);
rhash.blocksize = alg->cra_blocksize;
rhash.digestsize = __crypto_hash_alg_common(alg)->digestsize;