Commit b81b8d80 authored by Carl Smith's avatar Carl Smith Committed by V8 LUCI CQ

[fuzzilli] Exit with non-zero value on OOM

Exit with a non-zero exit code on OOM crashes such that Fuzzilli can discard
these samples. Otherwise Fuzzilli treats these as valid samples and adds them
to the corpus.

Bug: v8:10571
Change-Id: Ia450a86288d9c2e8ee1cf0eb57bd8808de2f7dd7
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3816665Reviewed-by: 's avatarSamuel Groß <saelo@chromium.org>
Reviewed-by: 's avatarLeszek Swirski <leszeks@chromium.org>
Commit-Queue: Carl Smith <cffsmith@google.com>
Cr-Commit-Position: refs/heads/main@{#82311}
parent 727e808f
......@@ -343,7 +343,9 @@ void Utils::ReportOOMFailure(i::Isolate* i_isolate, const char* location,
details.is_heap_oom ? "javascript" : "process",
location);
#ifdef V8_FUZZILLI
exit(0);
// Ignore OOM crashes for fuzzing but exit with an error such that
// samples are discarded by Fuzzilli.
exit(1);
#else
base::OS::Abort();
#endif // V8_FUZZILLI
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment