Commit 44380f80 authored by Frank Tang's avatar Frank Tang Committed by Commit Bot

Fix SEGMAP_ERR by rolling ICU?

Fix Intl.ListFormat long strings cause SEGMAP_ERR
Add slow regression test.

Bug: chromium:1044570
Change-Id: I20e3523832ac3c69e88c11bd530122bbe782ad01
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2032712Reviewed-by: 's avatarShu-yu Guo <syg@chromium.org>
Reviewed-by: 's avatarMichael Achenbach <machenbach@chromium.org>
Commit-Queue: Frank Tang <ftang@chromium.org>
Cr-Commit-Position: refs/heads/master@{#66140}
parent 15d9575a
......@@ -39,6 +39,9 @@
# http://crbug/v8/9930
'date-format/format_range_hour_cycle': [FAIL],
# Slow tests.
'regress-1044570': [PASS, SLOW, NO_VARIANTS],
}], # ALWAYS
['variant == no_wasm_traps', {
......
// Copyright 2020 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Test no crash with array of very long string.
const num = 0xAFFFFFF;
const lfm = new Intl.ListFormat();
const s = 'a'.repeat(num);
// Ensure the following won't crash. The length will be 0
// because it will be too long to return correct result.
assertEquals(0, lfm.format(Array(16).fill(s)).length);
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