| Index: components/nacl/loader/nacl_main_platform_delegate_win.cc
|
| diff --git a/components/nacl/loader/nacl_main_platform_delegate_win.cc b/components/nacl/loader/nacl_main_platform_delegate_win.cc
|
| index e4d0ad5520d6cf2e9e7dca62fa10a440310278f4..268113816c2e5df2f3e10c8945aecedf0d3a841d 100644
|
| --- a/components/nacl/loader/nacl_main_platform_delegate_win.cc
|
| +++ b/components/nacl/loader/nacl_main_platform_delegate_win.cc
|
| @@ -21,6 +21,12 @@
|
| ::GetUserDefaultLangID();
|
| ::GetUserDefaultLCID();
|
|
|
| +#if defined(ADDRESS_SANITIZER)
|
| + // Bind and leak dbghelp.dll before the token is lowered, otherwise
|
| + // AddressSanitizer will crash when trying to symbolize a report.
|
| + CHECK(LoadLibraryA("dbghelp.dll"));
|
| +#endif
|
| +
|
| // Turn the sandbox on.
|
| target_services->LowerToken();
|
| }
|
|
|