mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 03:15:11 +00:00
c277593b98
Some applications tamper Import Directory entry of a loaded executable image to pretend static dependency on their module. We have `RestoreImportDirectory` to revert it in the browser process. If tampering happened in the launcher process, however, we failed to get an IAT thunk address via `GetIATThunksForModule` because it could be located outside the mapped image. With this patch, we skip bounds check in `GetIATThunksForModule` if we detect tampering in the launcher process. We can proceed safely because it's expected that Import Directory is still valid though it's located outside. Differential Revision: https://phabricator.services.mozilla.com/D49690 --HG-- extra : moz-landing-system : lando |
||
---|---|---|
.. | ||
android | ||
baseprofiler | ||
build | ||
dllservices | ||
linker | ||
misc | ||
tests | ||
moz.build |