fuzz-bcd: 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 af23e453a5
commit d357624819
1 file changed
+2 -1
+2 -1
View File
@@ -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! */