test/crypto: fix possible overflow using strlcat
authorChaitanya Babu Talluri <tallurix.chaitanya.babu@intel.com>
Mon, 18 Mar 2019 12:36:36 +0000 (12:36 +0000)
committerAkhil Goyal <akhil.goyal@nxp.com>
Fri, 22 Mar 2019 14:54:24 +0000 (15:54 +0100)
commite3b91a3ef236b3bb6ee4db12cc285e8f87b942e7
tree4b5c161839ab91d6194b60104ff44970f1dad0ba
parentf4797bae00502b9fd3db0bae80cd933f69b33060
test/crypto: fix possible overflow using strlcat

strcat does not check the destination length and there might be
chances of string overflow so instead of strcat, strlcat is used.

Fixes: 6f4eec2565 ("test/crypto: enhance scheduler unit tests")
Cc: stable@dpdk.org
Signed-off-by: Chaitanya Babu Talluri <tallurix.chaitanya.babu@intel.com>
Acked-by: Akhil Goyal <akhil.goyal@nxp.com>
app/test/test_cryptodev.c