summaryrefslogtreecommitdiff
path: root/crypto/lz4hc.c
diff options
context:
space:
mode:
authorEric Biggers <ebiggers@google.com>2019-05-20 09:47:19 -0700
committerHerbert Xu <herbert@gondor.apana.org.au>2019-05-30 15:28:40 +0800
commit8826fef094134e31942562c40979e9559d3e82ea (patch)
tree6b847b302cabe513e7ad95b6b2f1947f31a2a30a /crypto/lz4hc.c
parent384577283cad0bde8a83dcf11812e998980a8bbc (diff)
downloadlinux-crypto-8826fef094134e31942562c40979e9559d3e82ea.tar.gz
linux-crypto-8826fef094134e31942562c40979e9559d3e82ea.zip
crypto: testmgr - fix length truncation with large page size
On PowerPC with CONFIG_CRYPTO_MANAGER_EXTRA_TESTS=y, there is sometimes a crash in generate_random_aead_testvec(). The problem is that the generated test vectors use data lengths of up to about 2 * PAGE_SIZE, which is 128 KiB on PowerPC; however, the data length fields in the test vectors are 'unsigned short', so the lengths get truncated. Fix this by changing the relevant fields to 'unsigned int'. Fixes: 4b772af62cb3 ("crypto: testmgr - fuzz AEADs against their generic implementation") Signed-off-by: Eric Biggers <ebiggers@google.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/lz4hc.c')
0 files changed, 0 insertions, 0 deletions