mirror of
https://github.com/systemd/systemd.git
synced 2026-11-06 05:17:24 +00:00
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:
1 parent
38d6199fe4
commit
94bdace8d1
1 file changed
+2
-1
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user