From 38d6199fe437309e7c2358677cea4725c81da1e6 Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Wed, 4 Nov 2026 22:26:58 +0900 Subject: [PATCH] fuzz-efi-osrel: 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-efi-osrel.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/boot/fuzz-efi-osrel.c b/src/boot/fuzz-efi-osrel.c index 1a5a9bc3fe7..cd340bc86bf 100644 --- a/src/boot/fuzz-efi-osrel.c +++ b/src/boot/fuzz-efi-osrel.c @@ -3,6 +3,7 @@ #include "alloc-util.h" #include "efi-string.h" #include "fuzz.h" +#include "tests.h" #define SEP_LEN 4 @@ -15,13 +16,13 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) { fuzz_setup_logging(); _cleanup_free_ char *p = memdup_suffix0(data + SEP_LEN + 1, size - SEP_LEN - 1); - assert_se(p); + ASSERT_NOT_NULL(p); size_t pos = 0; char *key, *value; while (line_get_key_value(p, (const char *) data, &pos, &key, &value)) { - assert_se(key); - assert_se(value); + ASSERT_NOT_NULL(key); + ASSERT_NOT_NULL(value); } return 0;