зеркало из https://github.com/mozilla/gecko-dev.git
5730f5fc1c
In part 1, we disabled the unhooking of DLL-intercepted functions at shutdown. The TestDllInterceptor relied on unhooking -- it worked by hooking functions with a "nonsense function" (nullptr) and then immediately unhooking it. That restored the original function behavior. Some hooked functions (e.g. NtWriteFile) are used by functions later in the program (e.g. printf) so the functions need to maintain their behavior. This patch replaces the nonsense function with an identity function that also sets a global boolean as a side-effect. The function is written in machine code. x86-32, x86-64, and aarch64 variants are included. Differential Revision: https://phabricator.services.mozilla.com/D30244 --HG-- extra : moz-landing-system : lando |
||
---|---|---|
.. | ||
TestDllInterceptor.cpp | ||
TestDllInterceptorCrossProcess.cpp | ||
moz.build |