summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorJerome Marchand <jmarchan@redhat.com>2016-02-03 13:58:12 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-05-02 21:19:48 -0700
commit10fc325c03d2b68bdaa4180a1d5efdbf58c49846 (patch)
tree917330939085592dad0262e9ce98f5d82ffccd27 /tools/perf/scripts/python/export-to-postgresql.py
parent40a55e4f9401499ecf0d9f9076ba06f48822d1aa (diff)
crypto: testmgr - fix out of bound read in __test_aead()
commit abfa7f4357e3640fdee87dfc276fd0f379fb5ae6 upstream. __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> Cc: Julia Lawall <julia.lawall@lip6.fr> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions