summaryrefslogtreecommitdiffstats
path: root/crypto/poly1305_generic.c
diff options
context:
space:
mode:
authorMichael Schupikov <michael@schupikov.de>2018-10-07 13:58:10 +0200
committerHerbert Xu <herbert@gondor.apana.org.au>2018-10-12 08:20:45 +0200
commit22a8118d329334833cd30f2ceb36d28e8cae8a4f (patch)
treeef51d04023cc6f3ad80d18719a93a4bcde8fc68b /crypto/poly1305_generic.c
parentcrypto: chtls - remove set but not used variable 'csk' (diff)
downloadlinux-22a8118d329334833cd30f2ceb36d28e8cae8a4f.tar.xz
linux-22a8118d329334833cd30f2ceb36d28e8cae8a4f.zip
crypto: testmgr - fix sizeof() on COMP_BUF_SIZE
After allocation, output and decomp_output both point to memory chunks of size COMP_BUF_SIZE. Then, only the first bytes are zeroed out using sizeof(COMP_BUF_SIZE) as parameter to memset(), because sizeof(COMP_BUF_SIZE) provides the size of the constant and not the size of allocated memory. Instead, the whole allocated memory is meant to be zeroed out. Use COMP_BUF_SIZE as parameter to memset() directly in order to accomplish this. Fixes: 336073840a872 ("crypto: testmgr - Allow different compression results") Signed-off-by: Michael Schupikov <michael@schupikov.de> Reviewed-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions