Code Review
/
samplevnf.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
| inline |
side by side
VNFs: Fixing klocwork issue in VNFs code
[samplevnf.git]
/
VNFs
/
vFW
/
pipeline
/
pipeline_vfw_be.c
diff --git
a/VNFs/vFW/pipeline/pipeline_vfw_be.c
b/VNFs/vFW/pipeline/pipeline_vfw_be.c
index
f0eab34
..
71fd5cd
100644
(file)
--- a/
VNFs/vFW/pipeline/pipeline_vfw_be.c
+++ b/
VNFs/vFW/pipeline/pipeline_vfw_be.c
@@
-1969,7
+1969,7
@@
pipeline_vfw_parse_args(struct pipeline_vfw *vfw_pipe,
if (strcmp(arg_name, "n_flows") == 0) {
int n_flows = atoi(arg_value);
- if (
n_flows == 0
)
+ if (
(n_flows == 0) || (n_flows > 8000000)
)
return -1;
/* must be power of 2, round up if not */