From e694d233a99c8ffe6cba67810c43dccffc7dd06e Mon Sep 17 00:00:00 2001 From: jasper Date: Thu, 9 Sep 2021 20:07:49 +0000 Subject: [PATCH] fix crash when passing empty cli arguments as B_AT_NIL wasn't handled as a valid argument type found with afl++ ok mpi@ --- usr.sbin/btrace/btrace.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/usr.sbin/btrace/btrace.c b/usr.sbin/btrace/btrace.c index 371ddf6b9df..601b205a663 100644 --- a/usr.sbin/btrace/btrace.c +++ b/usr.sbin/btrace/btrace.c @@ -1,4 +1,4 @@ -/* $OpenBSD: btrace.c,v 1.55 2021/09/09 11:20:40 mpi Exp $ */ +/* $OpenBSD: btrace.c,v 1.56 2021/09/09 20:07:49 jasper Exp $ */ /* * Copyright (c) 2019 - 2021 Martin Pieuchot @@ -1437,6 +1437,7 @@ ba2dtflags(struct bt_arg *ba) case B_AT_LONG: case B_AT_VAR: case B_AT_HIST: + case B_AT_NIL: break; case B_AT_BI_KSTACK: flags |= DTEVT_KSTACK; -- 2.20.1