Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(173)

Issue 2236963003: Throw when case mapping result > max string length (Closed)

Created:
4 years, 4 months ago by jungshik at Google
Modified:
4 years, 4 months ago
CC:
v8-reviews_googlegroups.com
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

Throw when case mapping result > max string length Throw 'Range Error: invalid string length' when the result of case mapping is longer than the max string length (kMaxLength in objects.h = 1 << 28 - 16). This is for case mapping with ICU. A new test (case-mapping-slow.js) is added with PASS,SLOW. It's configured to skip unless arch=x64 and mode=release and not on simulator. This is a reattempt to land https://codereview.chromium.org/2236593002 that was reverted. BUG=v8:5271 TEST=intl/general/case-mapping-slow.js with --icu_case_mapping Committed: https://crrev.com/4e8ebeb03c3cf08ee8b857410b056a57f5542992 Cr-Commit-Position: refs/heads/master@{#38626}

Patch Set 1 #

Patch Set 2 : remove empty line #

Patch Set 3 : remove test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -2 lines) Patch
M src/runtime/runtime-i18n.cc View 1 2 1 chunk +4 lines, -2 lines 0 comments Download

Messages

Total messages: 22 (9 generated)
jungshik at Google
How about this? PTAL
4 years, 4 months ago (2016-08-11 22:05:40 UTC) #2
Dan Ehrenberg
lgtm
4 years, 4 months ago (2016-08-11 22:06:23 UTC) #3
jungshik at Google
machenbach@, would this work?
4 years, 4 months ago (2016-08-11 22:06:28 UTC) #5
Michael Achenbach
Would work, but would still add a slow test to x64 release. It was also ...
4 years, 4 months ago (2016-08-12 07:10:06 UTC) #11
Jakob Kummerow
No, we don't have a flag to reduce the max string length for testing. Maybe ...
4 years, 4 months ago (2016-08-12 11:06:49 UTC) #12
jungshik at Google
On 2016/08/12 11:06:49, Jakob wrote: > No, we don't have a flag to reduce the ...
4 years, 4 months ago (2016-08-12 16:42:39 UTC) #13
Michael Achenbach
> BTW, it's strange that it takes over a minute on trybots. On my machine, ...
4 years, 4 months ago (2016-08-12 17:13:46 UTC) #14
Dan Ehrenberg
lgtm
4 years, 4 months ago (2016-08-12 17:35:10 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2236963003/40001
4 years, 4 months ago (2016-08-12 18:57:21 UTC) #17
jungshik at Google
On 2016/08/12 17:13:46, machenbach (OOO until Aug 28) wrote: > > BTW, it's strange that ...
4 years, 4 months ago (2016-08-12 18:58:10 UTC) #18
Michael Achenbach
np - lgtm
4 years, 4 months ago (2016-08-12 19:09:53 UTC) #19
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 4 months ago (2016-08-12 19:52:23 UTC) #20
commit-bot: I haz the power
4 years, 4 months ago (2016-08-12 19:52:45 UTC) #22
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/4e8ebeb03c3cf08ee8b857410b056a57f5542992
Cr-Commit-Position: refs/heads/master@{#38626}

Powered by Google App Engine
This is Rietveld 408576698