Handle the case where map/hist can be read after calling clear().
authormpi <mpi@openbsd.org>
Wed, 1 Sep 2021 13:21:24 +0000 (13:21 +0000)
committermpi <mpi@openbsd.org>
Wed, 1 Sep 2021 13:21:24 +0000 (13:21 +0000)
commitb303712a159492116e6aa272420baeefcb6377f4
tree8f4b4f7cc1c0f2f7a63e5f875809a31a6e8cd792
parentfc51cb501dd3aa311d9b11d159f41d7b1e5cf33e
Handle the case where map/hist can be read after calling clear().

Fix a NULL-derference found by jasper@ with AFL++ (port coming soon!).

ok jasper@
usr.sbin/btrace/btrace.c