Commit 8aead3b5 authored by Jakob Gruber's avatar Jakob Gruber Committed by Commit Bot

[regexp] Add correctness fuzzer suppression

This extends suppressions to also handle excess zone allocations in
the parser.

Bug: chromium:1002510
Change-Id: Id418564d244ed618703e62260de31a6b1a2842f8
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1821459
Auto-Submit: Jakob Gruber <jgruber@chromium.org>
Commit-Queue: Michael Achenbach <machenbach@chromium.org>
Reviewed-by: 's avatarMichael Achenbach <machenbach@chromium.org>
Cr-Commit-Position: refs/heads/master@{#63948}
parent f6740454
......@@ -84,6 +84,9 @@ void RegExpParser::Advance() {
ReportError(CStrVector(
MessageFormatter::TemplateString(MessageTemplate::kStackOverflow)));
} else if (zone()->excess_allocation()) {
if (FLAG_correctness_fuzzer_suppressions) {
FATAL("Aborting on excess zone allocation");
}
ReportError(CStrVector("Regular expression too large"));
} else {
current_ = ReadNext<true>();
......
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