From b101058890d66c960713fc7c203094fb54643755 Mon Sep 17 00:00:00 2001 From: Dave Wallace Date: Wed, 30 Oct 2019 18:47:46 +0000 Subject: http_static: fifo-size is u32 - Limit cli input to u32 Type: fix Signed-off-by: Dave Wallace Change-Id: Ib1f8ee9764da91a7804cc08901112c3f074130bc --- src/plugins/http_static/http_static_test.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/plugins') 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, -- cgit 1.2.3-korg