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