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:
40d42de
)
examples/pipeline: fix out of bounds array access
author
Cristian Dumitrescu
<cristian.dumitrescu@intel.com>
Mon, 12 Jul 2021 18:18:33 +0000
(19:18 +0100)
committer
Thomas Monjalon
<thomas@monjalon.net>
Wed, 21 Jul 2021 11:51:17 +0000
(13:51 +0200)
Fix the incorrect array out of bounds check within the function
pipeline_selector_group_member_read().
Coverity issue: 371911
Fixes:
598fe0dd0d8e3
("examples/pipeline: support selector table")
Signed-off-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>
examples/pipeline/cli.c
patch
|
blob
|
history
diff --git
a/examples/pipeline/cli.c
b/examples/pipeline/cli.c
index
bf32efa
..
1e2dd9d
100644
(file)
--- a/
examples/pipeline/cli.c
+++ b/
examples/pipeline/cli.c
@@
-1511,7
+1511,7
@@
pipeline_selector_group_member_read(const char *string,
if (!token || token_is_comment(token))
break;
- if (n_tokens > GROUP_MEMBER_INFO_TOKENS_MAX)
+ if (n_tokens >
=
GROUP_MEMBER_INFO_TOKENS_MAX)
goto error;
token_array[n_tokens] = token;