summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernard Iremonger <bernard.iremonger@intel.com>2019-07-09 12:09:56 +0100
committerThomas Monjalon <thomas@monjalon.net>2019-07-10 23:41:25 +0200
commit8d244bb3a32ee54364f8c0a7b7244a67ad407091 (patch)
tree2d102992570baca24d0c7ebb625cebd7456c1c5d
parentf3330a26506ce45fe1b3423c611382c495c0b105 (diff)
downloaddpdk-8d244bb3a32ee54364f8c0a7b7244a67ad407091.zip
dpdk-8d244bb3a32ee54364f8c0a7b7244a67ad407091.tar.gz
dpdk-8d244bb3a32ee54364f8c0a7b7244a67ad407091.tar.xz
flow_classify: fix out-of-bounds access
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: be41ac2a330f ("flow_classify: introduce flow classify library") Cc: stable@dpdk.org Signed-off-by: Bernard Iremonger <bernard.iremonger@intel.com>
-rw-r--r--lib/librte_flow_classify/rte_flow_classify_parse.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/librte_flow_classify/rte_flow_classify_parse.c b/lib/librte_flow_classify/rte_flow_classify_parse.c
index f65ceaf..4653302 100644
--- a/lib/librte_flow_classify/rte_flow_classify_parse.c
+++ b/lib/librte_flow_classify/rte_flow_classify_parse.c
@@ -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));