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

Function GetModuleName

fuzz/libfuzzer/FuzzerTracePC.cpp:224–232  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

222}
223
224static std::string GetModuleName(uintptr_t PC) {
225 char ModulePathRaw[4096] = ""; // What's PATH_MAX in portable C++?
226 void *OffsetRaw = nullptr;
227 if (!EF->__sanitizer_get_module_and_offset_for_pc(
228 reinterpret_cast<void *>(PC), ModulePathRaw,
229 sizeof(ModulePathRaw), &OffsetRaw))
230 return "";
231 return ModulePathRaw;
232}
233
234template<class CallBack>
235void TracePC::IterateCoveredFunctions(CallBack CB) {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected