summaryrefslogtreecommitdiffstats
path: root/crypto/anubis.c
diff options
context:
space:
mode:
authorJerome Marchand <jmarchan@redhat.com>2016-02-03 13:58:12 +0100
committerHerbert Xu <herbert@gondor.apana.org.au>2016-02-06 15:33:29 +0800
commitabfa7f4357e3640fdee87dfc276fd0f379fb5ae6 (patch)
tree078981ec818395044e492b3a1b13d5ccdbd8a869 /crypto/anubis.c
parentd42cf2f1901e4fafb133d5fb680fc7138b9ba393 (diff)
downloadblackbird-op-linux-abfa7f4357e3640fdee87dfc276fd0f379fb5ae6.tar.gz
blackbird-op-linux-abfa7f4357e3640fdee87dfc276fd0f379fb5ae6.zip
crypto: testmgr - fix out of bound read in __test_aead()
__test_aead() reads MAX_IVLEN bytes from template[i].iv, but the actual length of the initialisation vector can be shorter. The length of the IV is already calculated earlier in the function. Let's just reuses that. Also the IV length is currently calculated several time for no reason. Let's fix that too. This fix an out-of-bound error detected by KASan. Signed-off-by: Jerome Marchand <jmarchan@redhat.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/anubis.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud