Home
last modified time | relevance | path

Searched refs:fdin (Results 1 – 1 of 1) sorted by relevance

/systemd-251/src/journal-remote/
Dfuzz-journal-remote.c19 int fdin; in LLVMFuzzerTestOneInput() local
33 fdin = memfd_new_and_map("fuzz-journal-remote", size, &mem); in LLVMFuzzerTestOneInput()
34 if (fdin < 0) in LLVMFuzzerTestOneInput()
35 return log_error_errno(fdin, "memfd_new_and_map() failed: %m"); in LLVMFuzzerTestOneInput()
52 r = journal_remote_add_source(&s, fdin, (char*) "fuzz-data", false); in LLVMFuzzerTestOneInput()
54 safe_close(fdin); in LLVMFuzzerTestOneInput()
60 assert_se(journal_remote_handle_raw_source(NULL, fdin, 0, &s) >= 0); in LLVMFuzzerTestOneInput()
62 assert_se(close(fdin) < 0 && errno == EBADF); /* Check that the fd is closed already */ in LLVMFuzzerTestOneInput()