app/crypto-perf: fix possible overflow
authorPablo de Lara <pablo.de.lara.guarch@intel.com>
Tue, 11 Apr 2017 14:42:59 +0000 (15:42 +0100)
committerPablo de Lara <pablo.de.lara.guarch@intel.com>
Thu, 20 Apr 2017 09:32:45 +0000 (11:32 +0200)
commit1e1d4fb791097c9cca687c3ee3f56284e2be2c25
tree318b50051c56a054066b5a51f053f47e13233438
parentf86e63bc7314b314e44a530a6f384ef72b8d1dd9
app/crypto-perf: fix possible overflow

In the latency test, when number of enqueued operations
is less than the burst size, the timestamp value of the
non-enqueued operations was being stored, even though
those operations were being freed.

This could cause an array overflow, since it could store
more values than the total number of operations.

Fixes: 5d75fb09d3be ("app/crypto-perf: fix invalid latency for QAT")
Cc: stable@dpdk.org
Signed-off-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
app/test-crypto-perf/cperf_test_latency.c