]> Git Repo - linux.git/commit
crypto: testmgr - don't copy from source IV too much
authorAndrey Ryabinin <[email protected]>
Thu, 10 Sep 2015 10:11:55 +0000 (13:11 +0300)
committerHerbert Xu <[email protected]>
Fri, 11 Sep 2015 14:09:43 +0000 (22:09 +0800)
commit84cba178a3b88efe2668a9039f70abda072faa21
tree4ae19b43c59091f110a1094c7de60cd5d249f026
parent9da75de030bb6e49475ef37c8495d07e98cfeb33
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 <[email protected]>
Signed-off-by: Herbert Xu <[email protected]>
crypto/testmgr.c
This page took 0.056722 seconds and 4 git commands to generate.