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

Function SetTimer

fuzz/libfuzzer/FuzzerUtilPosix.cpp:106–115  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

104}
105
106void SetTimer(int Seconds) {
107 struct itimerval T {
108 {Seconds, 0}, { Seconds, 0 }
109 };
110 if (setitimer(ITIMER_REAL, &T, nullptr)) {
111 Printf("libFuzzer: setitimer failed with %d\n", errno);
112 exit(1);
113 }
114 SetSigaction(SIGALRM, AlarmHandler);
115}
116
117void SetSignalHandler(const FuzzingOptions& Options) {
118 // setitimer is not implemented in emscripten.

Callers 1

SetSignalHandlerFunction · 0.85

Calls 2

SetSigactionFunction · 0.85
PrintfFunction · 0.70

Tested by

no test coverage detected