diff options
author | Corentin Labbe | 2018-11-03 14:56:01 -0700 |
---|---|---|
committer | Herbert Xu | 2018-11-09 17:35:43 +0800 |
commit | 9f4debe38415583086ce814798eeb864aeb39551 (patch) | |
tree | de8015d77ef66fa15b20282d86cfb8a4d5e71949 /crypto/aes_ti.c | |
parent | f43f39958beb206b53292801e216d9b8a660f087 (diff) |
crypto: user - Zeroize whole structure given to user space
For preventing uninitialized data to be given to user-space (and so leak
potential useful data), the crypto_stat structure must be correctly
initialized.
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Fixes: cac5818c25d0 ("crypto: user - Implement a generic crypto statistics")
Signed-off-by: Corentin Labbe <clabbe@baylibre.com>
[EB: also fix it in crypto_reportstat_one()]
[EB: use sizeof(var) rather than sizeof(type)]
Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/aes_ti.c')
0 files changed, 0 insertions, 0 deletions