Go to file
Anoob Joseph 2382aa8c8f cryptodev: fix driver name comparison
The string compare to the length of driver name might give false
positives when there are drivers with similar names (one being the
subset of another).

Following is such a naming which could result in false positive.
1. crypto_driver
2. crypto_driver1

When strncmp with len = strlen("crypto_driver") is done, it could give
a false positive when compared against "crypto_driver1". For such cases,
'strlen + 1' is done, so that the NULL termination also would be
considered for the comparison.

Fixes: d11b0f30df ("cryptodev: introduce API and framework for crypto devices")
Cc: stable@dpdk.org

Signed-off-by: Ankur Dwivedi <adwivedi@marvell.com>
Signed-off-by: Anoob Joseph <anoobj@marvell.com>
Acked-by: Fiona Trahe <fiona.trahe@intel.com>
Acked-by: Akhil Goyal <akhil.goyal@nxp.com>
2019-03-22 14:27:46 +01:00
app test: add result field to mod exp and inv 2019-03-22 14:27:46 +01:00
buildtools config: add static linkage of mlx dependency 2019-01-14 17:44:29 +01:00
config mk: use linux and freebsd in config names 2019-03-12 23:05:06 +01:00
devtools devtools: fix meson build test to exit on failure 2019-03-13 11:09:55 +01:00
doc compress/qat: add fallback to fixed compression 2019-03-22 14:27:46 +01:00
drivers compress/qat: add fallback to fixed compression 2019-03-22 14:27:46 +01:00
examples examples/ipsec-secgw: fix debug logs 2019-03-22 14:27:46 +01:00
kernel build/freebsd: rename macro BSDPAPP to FREEBSD 2019-03-12 23:01:14 +01:00
lib cryptodev: fix driver name comparison 2019-03-22 14:27:46 +01:00
license fix dpdk.org URLs 2018-11-26 20:19:24 +01:00
mk mk: use linux and freebsd in config names 2019-03-12 23:05:06 +01:00
usertools mk: use linux and freebsd in config names 2019-03-12 23:05:06 +01:00
.gitattributes improve git diff 2016-11-13 15:25:12 +01:00
.gitignore git: ignore build directories 2019-03-13 11:57:05 +01:00
GNUmakefile test: move to app directory 2019-02-26 15:29:27 +01:00
MAINTAINERS eal/linux: rename linuxapp to linux 2019-03-12 17:31:13 +01:00
Makefile license: use SPDX tag in root makefile 2018-01-04 22:41:38 +01:00
meson_options.txt build: use integers for numerical options 2019-02-27 12:28:03 +01:00
meson.build build: bump minimum Meson version to 0.47.1 2019-02-27 12:12:27 +01:00
README license: introduce SPDX identifiers 2018-01-04 22:41:38 +01:00

DPDK is a set of libraries and drivers for fast packet processing.
It supports many processor architectures and both FreeBSD and Linux.

The DPDK uses the Open Source BSD-3-Clause license for the core libraries
and drivers. The kernel components are GPL-2.0 licensed.

Please check the doc directory for release notes,
API documentation, and sample application information.

For questions and usage discussions, subscribe to: users@dpdk.org
Report bugs and issues to the development mailing list: dev@dpdk.org