Skip to content

Commit

Permalink
flow_classify: fix out-of-bounds access
Browse files Browse the repository at this point in the history
[ upstream commit 8d244bb ]

This patch fixes the out-of-bounds coverity issue by removing the
offending line of code at line 107 in rte_flow_classify_parse.c
which is never executed.

Coverity issue: 343454
Fixes: be41ac2 ("flow_classify: introduce flow classify library")

Signed-off-by: Bernard Iremonger <bernard.iremonger@intel.com>
  • Loading branch information
bairemon authored and kevintraynor committed Aug 26, 2019
1 parent bdb4934 commit 5c0e9b1
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions lib/librte_flow_classify/rte_flow_classify_parse.c
Expand Up @@ -103,8 +103,6 @@ classify_pattern_skip_void_item(struct rte_flow_item *items,
pb = pe;
break;
}

pb = pe + 1;
}
/* Copy the END item. */
rte_memcpy(items, pe, sizeof(struct rte_flow_item));
Expand Down

0 comments on commit 5c0e9b1

Please sign in to comment.