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
/
rng.c
diff --git
a/crypto/rng.c
b/crypto/rng.c
index f3b7894dec00ee5207642f7ff95cbf8ef6aaeb2f..e0a25c2456de4f7f92fa4ac1cc4daf9c48b5b209 100644
(file)
--- a/
crypto/rng.c
+++ b/
crypto/rng.c
@@
-65,7
+65,7
@@
static int crypto_rng_report(struct sk_buff *skb, struct crypto_alg *alg)
{
struct crypto_report_rng rrng;
- s
nprintf(rrng.type, CRYPTO_MAX_ALG_NAME, "%s", "rng"
);
+ s
trncpy(rrng.type, "rng", sizeof(rrng.type)
);
rrng.seedsize = alg->cra_rng.seedsize;