diff options
author | Dave Wallace <dwallacelf@gmail.com> | 2019-10-30 18:47:46 +0000 |
---|---|---|
committer | Florin Coras <florin.coras@gmail.com> | 2019-10-30 20:09:09 +0000 |
commit | b101058890d66c960713fc7c203094fb54643755 (patch) | |
tree | 6b007ca62da3f84d9920641b2f82cf6717272434 /src | |
parent | c9832e3df839d164a801b57cd5f4ee014efe496b (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
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/http_static/http_static_test.c | 5 |
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 023d78a4f0d..0b46d23dce5 100644 --- a/src/plugins/http_static/http_static_test.c +++ b/src/plugins/http_static/http_static_test.c @@ -71,6 +71,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, |