Type: improvement
Short message lengths are correctly handled by the code, asserting makes unit tests that verify this behaviour (e.g. test_ip_punt_api_validation) fail/crash with a debug image.
Signed-off-by: Neale Ranns <neale@graphiant.com>
Change-Id: Ib3a377e5d49fde0eee252b92f0e58a8a0d0d83ec
if (calc_size_fp)
{
calc_size = (*calc_size_fp) (the_msg);
if (calc_size_fp)
{
calc_size = (*calc_size_fp) (the_msg);
- ASSERT (calc_size <= msg_len);
if (calc_size > msg_len)
{
clib_warning (
if (calc_size > msg_len)
{
clib_warning (