gecko-dev/mozglue
Toshihito Kikuchi 0d9e48e427 Bug 1702086 - Make sure LoadLibraryEx really locks the mapped address. r=mstange
Before `SharedLibraryInfo::GetInfoForSelf` calls `GetPdbInfo` to parse a module's
PE header, it calls `LoadLibraryEx` to prevent the module from being unloaded
during `GetPdbInfo`.  If the module was already unloaded before `LoadLibraryEx`,
however, `LoadLibraryEx` maps the module onto an address different from the original
mapped address, so that `module.lpBaseOfDll` becomes invalid.

This patch is to call `LoadLibraryEx` before `GetModuleInformation` to make sure
`LoadLibraryEx` increments the module's refcount and does not map the module onto
a new address.  With this, `module.lpBaseOfDll` is always valid, thus we don't have
to call `VirtualQuery`.

Differential Revision: https://phabricator.services.mozilla.com/D110421
2021-04-01 00:35:01 +00:00
..
android Bug 1679522 - Fix include directives and forward declarations. r=andi,necko-reviewers,jgilbert 2021-03-25 10:19:44 +00:00
baseprofiler Bug 1702086 - Make sure LoadLibraryEx really locks the mapped address. r=mstange 2021-04-01 00:35:01 +00:00
build Bug 1683439 - Remove suppression for fixed issue. r=KrisWright 2021-02-05 17:22:06 +00:00
dllservices Bug 1700281 - Block Webroot SecureAnywhere's module. r=gcp 2021-03-29 14:26:43 +00:00
linker Bug 1679522 - Fix include directives and forward declarations. r=andi,necko-reviewers,jgilbert 2021-03-25 10:19:44 +00:00
misc Bug 1700885 - Add a runtime way to disable MozWalkTheStack. r=Gankra 2021-03-31 00:47:58 +00:00
static
tests Bug 1697282 - Make the repo buildable without MOZ_LAUNCHER_PROCESS. r=aklotz 2021-03-12 23:38:01 +00:00
moz.build