MCPcopy Create free account
hub / github.com/HexHive/NASS / DiscardOutput

Function DiscardOutput

fuzz/libfuzzer/FuzzerUtilLinux.cpp:35–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33}
34
35void DiscardOutput(int Fd) {
36 FILE* Temp = fopen("/dev/null", "w");
37 if (!Temp)
38 return;
39 dup2(fileno(Temp), Fd);
40 fclose(Temp);
41}
42
43void SetThreadName(std::thread &thread, const std::string &name) {
44#if LIBFUZZER_LINUX || LIBFUZZER_FREEBSD

Callers 2

DupAndCloseStderrFunction · 0.70
CloseStdoutFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected