MCPcopy Create free account
hub / github.com/Dor1s/libfuzzer-workshop / ExecuteCommand

Function ExecuteCommand

libFuzzer/Fuzzer/FuzzerUtilDarwin.cpp:40–157  ·  view source on GitHub ↗

This is a reimplementation of Libc's `system()`. On Darwin the Libc implementation contains a mutex which prevents it from being used concurrently. This implementation **can** be used concurrently. It sets the signal handlers when the first thread enters and restores them when the last thread finishes execution of the function and ensures this is not racey by using a mutex.

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 3

toStringMethod · 0.80
sigactionClass · 0.70
PrintfFunction · 0.70

Tested by

no test coverage detected