MCPcopy Create free account
hub / github.com/R-Fuzz/symsan / InterceptFunction

Function InterceptFunction

runtime/interception/interception_linux.cpp:59–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57}
58
59bool InterceptFunction(const char *name, uptr *ptr_to_real, uptr func,
60 uptr wrapper) {
61 void *addr = GetFuncAddr(name, wrapper);
62 *ptr_to_real = (uptr)addr;
63 return addr && (func == wrapper);
64}
65
66// dlvsym is a GNU extension supported by some other platforms.
67#if SANITIZER_GLIBC || SANITIZER_FREEBSD || SANITIZER_NETBSD

Callers 1

TESTFunction · 0.85

Calls 1

GetFuncAddrFunction · 0.85

Tested by 1

TESTFunction · 0.68