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

Function ExecuteCommand

fuzz/libfuzzer/FuzzerUtilLinux.cpp:25–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23namespace fuzzer {
24
25int ExecuteCommand(const Command &Cmd) {
26 std::string CmdLine = Cmd.toString();
27 int exit_code = system(CmdLine.c_str());
28 if (WIFEXITED(exit_code))
29 return WEXITSTATUS(exit_code);
30 if (WIFSIGNALED(exit_code) && WTERMSIG(exit_code) == SIGINT)
31 return Fuzzer::InterruptExitCode();
32 return exit_code;
33}
34
35void DiscardOutput(int Fd) {
36 FILE* Temp = fopen("/dev/null", "w");

Callers 7

CrashResistantMergeFunction · 0.70
WorkerThreadFunction · 0.70
CleanseCrashInputFunction · 0.70
MinimizeCrashInputFunction · 0.70
CollectDFTMethod · 0.70
WorkerThreadFunction · 0.70
CollectDataFlowFunction · 0.70

Calls 2

toStringMethod · 0.45
c_strMethod · 0.45

Tested by

no test coverage detected