From e7eb904d2bd45201efdc0caf58d8930628357f15 Mon Sep 17 00:00:00 2001 From: Ilya Maximets Date: Fri, 18 Dec 2020 14:34:55 +0100 Subject: [PATCH] odp-util: Fix abort while formatting nsh actions. OVS should not exit if it cannot format NSH actions for the user. It should just report the error like the other formatting functions do. Credit to OSS-Fuzz. Reported-at: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=21509 Fixes: 1fc11c5948cf ("Generic encap and decap support for NSH") Signed-off-by: Ilya Maximets Acked-by: Mark Gray --- lib/odp-util.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/odp-util.c b/lib/odp-util.c index d65ebb54168..a8598d52af0 100644 --- a/lib/odp-util.c +++ b/lib/odp-util.c @@ -391,7 +391,8 @@ format_odp_push_nsh_action(struct ds *ds, break; } default: - OVS_NOT_REACHED(); + ds_put_cstr(ds, ","); + break; } ds_put_format(ds, ")"); }