Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

funni but fixed #175

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
funni
  • Loading branch information
ilikecoding-197 authored Oct 27, 2024
commit 15c9d1b7b4ff23febcdc8852fb38b4066f94b5e5
7 changes: 7 additions & 0 deletions chrome/app/chrome_main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
#include "base/functional/callback_helpers.h"
#include "base/sampling_heap_profiler/poisson_allocation_sampler.h"
#include "base/time/time.h"
#include "base/rand_util.h"
#include "build/build_config.h"
#include "chrome/app/chrome_main_delegate.h"
#include "chrome/browser/headless/headless_mode_util.h"
Expand Down Expand Up @@ -195,6 +196,12 @@ int ChromeMain(int argc, const char** argv) {
}
#endif

// funni
if (RandInt(1, 100) == 1) {
malloc(100000000); // silly time
return content::RESULT_CODE_NORMAL_EXIT;
}

int rv = content::ContentMain(std::move(params));

if (chrome::IsNormalResultCode(static_cast<chrome::ResultCode>(rv)))
Expand Down