From ba2f55154c4ae91a98348ac48a0d11f0de9772db Mon Sep 17 00:00:00 2001 From: Neale Ranns Date: Fri, 25 Mar 2022 08:34:53 +0000 Subject: api: Do not assert of short message lengths 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 Change-Id: Ib3a377e5d49fde0eee252b92f0e58a8a0d0d83ec --- src/vlibapi/api_shared.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/vlibapi/api_shared.c b/src/vlibapi/api_shared.c index 77278431fb7..17560e5de23 100644 --- a/src/vlibapi/api_shared.c +++ b/src/vlibapi/api_shared.c @@ -551,7 +551,6 @@ msg_handler_internal (api_main_t *am, void *the_msg, uword msg_len, if (calc_size_fp) { calc_size = (*calc_size_fp) (the_msg); - ASSERT (calc_size <= msg_len); if (calc_size > msg_len) { clib_warning ( -- cgit 1.2.3-korg