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

Issue 2803603005: [regexp] Fix two more possible shape changes on fast path (Closed)

Created:
3 years, 8 months ago by jgruber
Modified:
3 years, 8 months ago
Reviewers:
Camillo Bruni
CC:
v8-reviews_googlegroups.com
Target Ref:
refs/heads/master
Project:
v8
Visibility:
Public.

Description

[regexp] Fix two more possible shape changes on fast path This CL fixes two more cases in which a regexp could unintentionally transition to slow mode while on the fast path, leading to possible OOB accesses of lastIndex. In both cases, the fix is to re-check the shape and possibly bail to runtime. BUG=chromium:708247, v8:6210 Review-Url: https://codereview.chromium.org/2803603005 Cr-Commit-Position: refs/heads/master@{#44451} Committed: https://chromium.googlesource.com/v8/v8/+/1ccf6c0943e328183cb670e14d718b7461cbcb93

Patch Set 1 #

Total comments: 6

Patch Set 2 : Add fast-path before ToUint32 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+64 lines, -3 lines) Patch
M src/builtins/builtins-regexp-gen.cc View 1 3 chunks +30 lines, -3 lines 0 comments Download
A test/mjsunit/regress/regress-6210.js View 1 chunk +34 lines, -0 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 19 (14 generated)
jgruber
3 years, 8 months ago (2017-04-06 14:24:54 UTC) #7
Camillo Bruni
LGTM with one nit. https://codereview.chromium.org/2803603005/diff/1/src/builtins/builtins-regexp-gen.cc File src/builtins/builtins-regexp-gen.cc (right): https://codereview.chromium.org/2803603005/diff/1/src/builtins/builtins-regexp-gen.cc#newcode2310 src/builtins/builtins-regexp-gen.cc:2310: Node* const limit = ToUint32(context, ...
3 years, 8 months ago (2017-04-06 14:54:15 UTC) #8
jgruber
https://codereview.chromium.org/2803603005/diff/1/src/builtins/builtins-regexp-gen.cc File src/builtins/builtins-regexp-gen.cc (right): https://codereview.chromium.org/2803603005/diff/1/src/builtins/builtins-regexp-gen.cc#newcode2310 src/builtins/builtins-regexp-gen.cc:2310: Node* const limit = ToUint32(context, maybe_limit); On 2017/04/06 14:54:15, ...
3 years, 8 months ago (2017-04-06 15:21:12 UTC) #11
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/2803603005/20001
3 years, 8 months ago (2017-04-06 15:50:09 UTC) #16
commit-bot: I haz the power
3 years, 8 months ago (2017-04-06 15:52:27 UTC) #19
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/v8/v8/+/1ccf6c0943e328183cb670e14d718b7461c...

Powered by Google App Engine
This is Rietveld 408576698