diff options
Diffstat (limited to 'chrome')
-rw-r--r-- | chrome/app/chrome_main.cc | 3 | ||||
-rw-r--r-- | chrome/plugin/plugin_main.cc | 4 |
2 files changed, 6 insertions, 1 deletions
diff --git a/chrome/app/chrome_main.cc b/chrome/app/chrome_main.cc index 6bf80cc..9cd4897 100644 --- a/chrome/app/chrome_main.cc +++ b/chrome/app/chrome_main.cc @@ -137,10 +137,12 @@ void InvalidParameter(const wchar_t* expression, const wchar_t* function, const wchar_t* file, unsigned int line, uintptr_t reserved) { __debugbreak(); + _exit(1); } void PureCall() { __debugbreak(); + _exit(1); } #pragma warning(push) @@ -162,6 +164,7 @@ void OnNoMemory() { // the buffer is then used, it provides a handy mapping of memory starting at // address 0 for an attacker to utilize. __debugbreak(); + _exit(1); } #pragma warning(pop) diff --git a/chrome/plugin/plugin_main.cc b/chrome/plugin/plugin_main.cc index 0dc0503..4268b0f 100644 --- a/chrome/plugin/plugin_main.cc +++ b/chrome/plugin/plugin_main.cc @@ -149,8 +149,10 @@ int PluginMain(const MainFunctionParams& parameters) { BOOL result = run_security_tests(&test_count); DCHECK(result) << "Test number " << test_count << " has failed."; // If we are in release mode, crash or debug the process. - if (!result) + if (!result) { __debugbreak(); + _exit(1); + } } FreeLibrary(sandbox_test_module); |