summaryrefslogtreecommitdiff
path: root/crypto/asymmetric_keys/verify_pefile.c
diff options
context:
space:
mode:
authorAndrey Ryabinin <aryabinin@virtuozzo.com>2015-09-10 13:11:55 +0300
committerHerbert Xu <herbert@gondor.apana.org.au>2015-09-11 22:09:43 +0800
commit6fa96d876e74e903518d5989a2aa2f5af90294a1 (patch)
treee7af53b7b29ffe865813eefe15f24f428d697c66 /crypto/asymmetric_keys/verify_pefile.c
parent97fc4b451d1e513c0b6a5296a584a3b18afeb8d7 (diff)
downloadlinux-crypto-6fa96d876e74e903518d5989a2aa2f5af90294a1.tar.gz
linux-crypto-6fa96d876e74e903518d5989a2aa2f5af90294a1.zip
crypto: testmgr - don't copy from source IV too much
While the destination buffer 'iv' is MAX_IVLEN size, the source 'template[i].iv' could be smaller, thus memcpy may read read invalid memory. Use crypto_skcipher_ivsize() to get real ivsize and pass it to memcpy. Signed-off-by: Andrey Ryabinin <aryabinin@virtuozzo.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/asymmetric_keys/verify_pefile.c')
0 files changed, 0 insertions, 0 deletions