fuzz-efi-string: 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 38d6199fe4
commit 94bdace8d1
1 file changed
+2 -1
+2 -1
View File
@@ -3,10 +3,11 @@
#include "alloc-util.h"
#include "efi-string.h"
#include "fuzz.h"
#include "tests.h"
static char16_t *memdup_str16(const uint8_t *data, size_t size) {
char16_t *ret = memdup(data, size);
assert_se(ret);
ASSERT_NOT_NULL(ret);
ret[size / sizeof(char16_t) - 1] = '\0';
return ret;
}