gecko-dev/mozglue/misc/interceptor
Toshihito Kikuchi eb086eb295 Bug 1604008 - Use a target process's export table to cross-process detour. r=aklotz
When `WindowsDllInterceptor` detours a function in a remote process, it calculates
a target address via `GetProcAddress` in the caller's process first, and detours
that address in the target process.  If the caller's export table was modified, the
target address might be invalid in the target process.

With this patch, `WindowsDllInterceptor` uses the target process's export table to
calculate a target function address.

Differential Revision: https://phabricator.services.mozilla.com/D58305

--HG--
extra : moz-landing-system : lando
2020-01-11 00:34:21 +00:00
..
Arm64.cpp Bug 1532470: Part 4 - Add 4-byte patching to ARM64 interceptor; r=handyman 2019-06-12 01:11:36 +00:00
Arm64.h Bug 1532470: Part 4 - Add 4-byte patching to ARM64 interceptor; r=handyman 2019-06-12 01:11:36 +00:00
MMPolicies.h Bug 1604008 - Use a target process's export table to cross-process detour. r=aklotz 2020-01-11 00:34:21 +00:00
PatcherBase.h Bug 1604008 - Use a target process's export table to cross-process detour. r=aklotz 2020-01-11 00:34:21 +00:00
PatcherDetour.h Bug 1599015 - Graciously return a failure if we fail to change the attribute of a trampoline. r=handyman,dmajor 2020-01-02 17:08:33 +00:00
PatcherNopSpace.h Bug 1580293: Ensure that parameter packs in mozglue/misc are expanded as rvalue references; r=mhowell 2019-09-10 19:55:44 +00:00
RangeMap.h Bug 1532470: Part 2 - Modify VM sharing policies to use trampoline pools and support the ability to specify a desired memory range when reserving address space; r=handyman 2019-06-12 01:11:36 +00:00
TargetFunction.h Bug 1532470: Part 4 - Add 4-byte patching to ARM64 interceptor; r=handyman 2019-06-12 01:11:36 +00:00
Trampoline.h Bug 1532470: Part 3 - Modify trampolines to support trampoline pools and null trampolines; r=handyman 2019-06-12 01:11:36 +00:00
VMSharingPolicies.h Bug 1580293: Ensure that parameter packs in mozglue/misc are expanded as rvalue references; r=mhowell 2019-09-10 19:55:44 +00:00
moz.build Bug 1532470: Part 2 - Modify VM sharing policies to use trampoline pools and support the ability to specify a desired memory range when reserving address space; r=handyman 2019-06-12 01:11:36 +00:00