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

Function FunctionHasPrefix

runtime/interception/interception_win.cpp:230–236  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

228
229template<class T>
230static bool FunctionHasPrefix(uptr address, const T &pattern) {
231 u8* function = (u8*)address - sizeof(pattern);
232 for (size_t i = 0; i < sizeof(pattern); ++i)
233 if (function[i] != pattern[i])
234 return false;
235 return true;
236}
237
238static bool FunctionHasPadding(uptr address, uptr size) {
239 if (IsMemoryPadding(address - size, size))

Callers 1

FunctionHasPaddingFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected