diff options
Diffstat (limited to 'src/fuzz/fuzz-nspawn-settings.c')
-rw-r--r-- | src/fuzz/fuzz-nspawn-settings.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/fuzz/fuzz-nspawn-settings.c b/src/fuzz/fuzz-nspawn-settings.c index 6c81eb773a..aa0a8225b4 100644 --- a/src/fuzz/fuzz-nspawn-settings.c +++ b/src/fuzz/fuzz-nspawn-settings.c @@ -1,9 +1,8 @@ /* SPDX-License-Identifier: LGPL-2.1+ */ -#include <errno.h> - #include "alloc-util.h" #include "fd-util.h" +#include "fileio.h" #include "fuzz.h" #include "nspawn-settings.h" @@ -14,7 +13,7 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) { if (size == 0) return 0; - f = fmemopen((char*) data, size, "re"); + f = fmemopen_unlocked((char*) data, size, "re"); assert_se(f); /* We don't want to fill the logs with messages about parse errors. |