http_static: fifo-size is u32
- Limit cli input to u32 Type: fix Signed-off-by: Dave Wallace <dwallacelf@gmail.com> Change-Id: Ib1f8ee9764da91a7804cc08901112c3f074130bc
This commit is contained in:

committed by
Florin Coras

parent
c9832e3df8
commit
b101058890
@ -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,
|
||||
|
Reference in New Issue
Block a user