commit | 373106e215b0cae612a65d87eda1258ae736c131 | [log] [tgz] |
---|---|---|
author | Will Harris <wfh@chromium.org> | Tue Jan 23 19:10:49 2024 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Tue Jan 23 19:10:49 2024 |
tree | b8e6bd24a64ffd33b7fe9e711b6c67a0c8f9f12e | |
parent | 1b5422f44bbf205dd2929b64c6bacff1fe91d60f [diff] |
Fix call to GetModuleHandleEx in sandbox broker. It appears when this landed in crrev.com/c/3010473 the parameters to GetModuleHandleEx were accidently flipped. This means an exact match on the exe_path is performed rather than just checking that the calling module is the exe. This causes a CHECK to occur in the browser if chrome.exe is renamed while running, on older versions of Windows that do not alias renamed paths in the loader (tested on 10.0.10240). This CL fixes the glitch, and also adds GET_MODULE_HANDLE_EX_FLAG_UNCHANGED_REFCOUNT flag to ensure that no additional handle is taken to the module when checking it. Bug: None Change-Id: I20ed704124013f49f6e561604afa70f9e6a81940 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5228739 Reviewed-by: Alex Gough <ajgo@chromium.org> Commit-Queue: Will Harris <wfh@chromium.org> Cr-Commit-Position: refs/heads/main@{#1250969}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
To check out the source code locally, don't use git clone
! Instead, follow the instructions on how to get the code.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure.
For historical reasons, there are some small top level directories. Now the guidance is that new top level directories are for product (e.g. Chrome, Android WebView, Ash). Even if these products have multiple executables, the code should be in subdirectories of the product.
If you found a bug, please file it at https://crbug.com/new.