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.
This commit is contained in:
Yu Watanabe committed 2026-11-05 03:21:37 +09:00
1 parent d357624819
commit 38d6199fe4
1 file changed
+4 -3
+4 -3
View File
@@ -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;