app/crypto-perf: add options parsing check
authorKuba Kozak <kubax.kozak@intel.com>
Tue, 7 Feb 2017 12:20:16 +0000 (13:20 +0100)
committerPablo de Lara <pablo.de.lara.guarch@intel.com>
Fri, 10 Feb 2017 15:02:50 +0000 (16:02 +0100)
commitd27befd0b60cb5af63445ccf357443390efc1df3
tree3892d9064cdba0f4615c5816b69285b6b7337e84
parent8ecd4048ba5d23c016df9a10225972bb78fd8044
app/crypto-perf: add options parsing check

Added total_ops value validation in parse_total_ops() function.

Coverity issue: 141070
Fixes: f8be1786b1b8 ("app/crypto-perf: introduce performance test application")

Signed-off-by: Kuba Kozak <kubax.kozak@intel.com>
Acked-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
app/test-crypto-perf/cperf_options_parsing.c