Code Review
/
vpp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
103669d
)
http_static: fifo-size is u32
54/23254/2
author
Dave Wallace
<
[email protected]
>
Wed, 30 Oct 2019 18:47:46 +0000
(18:47 +0000)
committer
Andrew Yourtchenko
<
[email protected]
>
Fri, 15 Nov 2019 07:42:11 +0000
(07:42 +0000)
- Limit cli input to u32
Type: fix
Signed-off-by: Dave Wallace <
[email protected]
>
Change-Id: Ib1f8ee9764da91a7804cc08901112c3f074130bc
(cherry picked from commit
b101058890d66c960713fc7c203094fb54643755
)
src/plugins/http_static/http_static_test.c
patch
|
blob
|
history
diff --git
a/src/plugins/http_static/http_static_test.c
b/src/plugins/http_static/http_static_test.c
index
545980b
..
7210db8
100644
(file)
--- a/
src/plugins/http_static/http_static_test.c
+++ b/
src/plugins/http_static/http_static_test.c
@@
-120,6
+120,11
@@
api_http_static_enable (vat_main_t * vam)
else if (unformat (line_input, "fifo-size %U", unformat_memory_size,
&tmp))
{
+ if (tmp >= 0x100000000ULL)
+ {
+ errmsg ("fifo-size %llu, too large", tmp);
+ return -99;
+ }
fifo_size = (u32) tmp;
}
else if (unformat (line_input, "cache-size %U", unformat_memory_size,