Re: [dpdk-dev] [PATCH] examples/l2fwd-crypto: fix possible out-of-bounds

2017-07-31 Thread Thomas Monjalon
31/07/2017 06:40, Pablo de Lara: > rte_cryptodev_socket_id() returns the socket id of > a crypto device, unless the device id is not valid, > in which case, it returns -1. > This should not happen, as the device id is controlled > by the application, but just for safety, a check is added. > > Cove

[dpdk-dev] [PATCH] examples/l2fwd-crypto: fix possible out-of-bounds

2017-07-31 Thread Pablo de Lara
rte_cryptodev_socket_id() returns the socket id of a crypto device, unless the device id is not valid, in which case, it returns -1. This should not happen, as the device id is controlled by the application, but just for safety, a check is added. Coverity issue: 158628, 158638, 158656, 158662 Fixe