From d3576248194da319d3133dcfc5f46c5b07fcbc5d Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Wed, 4 Nov 2026 22:26:58 +0900 Subject: [PATCH] fuzz-bcd: use ASSERT_OK() and friends Replace assert_se() with the typed ASSERT_* macros, so that a failing assertion logs the values involved. --- src/boot/fuzz-bcd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/boot/fuzz-bcd.c b/src/boot/fuzz-bcd.c index e896b484b13..be730e5e866 100644 --- a/src/boot/fuzz-bcd.c +++ b/src/boot/fuzz-bcd.c @@ -3,6 +3,7 @@ #include "alloc-util.h" #include "bcd.h" #include "fuzz.h" +#include "tests.h" #include "utf8.h" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) { @@ -15,7 +16,7 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) { fuzz_setup_logging(); p = memdup(data, size); - assert_se(p); + ASSERT_NOT_NULL(p); char16_t *title = get_bcd_title(p, size); /* If we get something, it must be NUL-terminated, but an empty string is still valid! */