MCPcopy Create free account
hub / github.com/beefytech/Beef / PatchWindowsFunctions

Function PatchWindowsFunctions

BeefRT/gperftools/src/windows/patch_functions.cc:1038–1042  ·  view source on GitHub ↗

--------------------------------------------------------------------- PatchWindowsFunctions() This is the function that is exposed to the outside world. It should be called before the program becomes multi-threaded, since main_executable_windows.Patch() is not thread-safe. ---------------------------------------------------------------------

Source from the content-addressed store, hash-verified

1036// since main_executable_windows.Patch() is not thread-safe.
1037// ---------------------------------------------------------------------
1038void PatchWindowsFunctions() {
1039 // This does the libc patching in every module, and the main executable.
1040 PatchAllModules();
1041 main_executable_windows.Patch();
1042}
1043
1044#if 0
1045// It's possible to unpatch all the functions when we are exiting.

Callers 1

ReplaceSystemAllocFunction · 0.50

Calls 2

PatchAllModulesFunction · 0.70
PatchMethod · 0.45

Tested by

no test coverage detected