summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDave Wallace <dwallacelf@gmail.com>2019-10-30 18:47:46 +0000
committerAndrew Yourtchenko <ayourtch@gmail.com>2019-11-15 07:42:11 +0000
commit69f0861872c8d44486ad349144e30968e133185c (patch)
treede162c367cfa207786cb5850e4281114549c81a9 /src
parent103669de7d9a706c87a07dc6d084e2c7b4af7d2a (diff)
http_static: fifo-size is u32
- Limit cli input to u32 Type: fix Signed-off-by: Dave Wallace <dwallacelf@gmail.com> Change-Id: Ib1f8ee9764da91a7804cc08901112c3f074130bc (cherry picked from commit b101058890d66c960713fc7c203094fb54643755)
Diffstat (limited to 'src')
-rw-r--r--src/plugins/http_static/http_static_test.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/plugins/http_static/http_static_test.c b/src/plugins/http_static/http_static_test.c
index 545980b38dd..7210db8b02e 100644
--- 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,