git.droids-corp.org
/
dpdk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c3aaec2
)
app/bbdev: fix out-of-bounds read in vector array
author
Amr Mokhtar
<amr.mokhtar@intel.com>
Wed, 31 Jan 2018 13:46:21 +0000
(13:46 +0000)
committer
Thomas Monjalon
<thomas@monjalon.net>
Wed, 31 Jan 2018 17:46:27 +0000
(18:46 +0100)
Coverity issue: 257033
Fixes:
f714a18885a6
("app/testbbdev: add test application for bbdev")
Signed-off-by: Amr Mokhtar <amr.mokhtar@intel.com>
app/test-bbdev/test_bbdev_vector.c
patch
|
blob
|
history
diff --git
a/app/test-bbdev/test_bbdev_vector.c
b/app/test-bbdev/test_bbdev_vector.c
index
2d0852c
..
addef05
100644
(file)
--- a/
app/test-bbdev/test_bbdev_vector.c
+++ b/
app/test-bbdev/test_bbdev_vector.c
@@
-288,7
+288,7
@@
parse_data_entry(const char *key_token, char *token,
struct op_data_buf *op_data;
unsigned int *nb_ops;
- if (type > DATA_NUM_TYPES) {
+ if (type >
=
DATA_NUM_TYPES) {
printf("Unknown op type: %d!\n", type);
return -1;
}