Commit b4f11ef
deps: cherry-pick a51f429 from V8 upstream
Original commit message:
[regexp] Fix case-insensitive matching for one-byte subjects.
The bug occurs because we do not canonicalize character class ranges
before adding case equivalents. While adding case equivalents, we abort
early for one-byte subject strings, assuming that the ranges are sorted.
Which they are not.
R=marja@chromium.org
BUG=v8:5199
Review-Url: https://codereview.chromium.org/2159683002
Cr-Commit-Position: refs/heads/master@{#37833}
Fixes: #7708
PR-URL: #7833
Reviewed-By: targos - Michaël Zasso <mic.besace@gmail.com>
Reviewed-By: bnoordhuis - Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: ofrobots - Ali Ijaz Sheikh <ofrobots@google.com>1 parent 4a20869 commit b4f11efCopy full SHA for b4f11ef
File tree
Expand file treeCollapse file tree
3 files changed
+7
-1
lines changedOpen diff view settings
Filter options
- deps/v8
- include
- src/regexp
- test/mjsunit/regress
Expand file treeCollapse file tree
3 files changed
+7
-1
lines changedOpen diff view settings
Collapse file
deps/v8/include/v8-version.h
Copy file name to clipboardExpand all lines: deps/v8/include/v8-version.h+1-1Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
11 | 11 | |
12 | 12 | |
13 | 13 | |
14 | | - |
| 14 | + |
15 | 15 | |
16 | 16 | |
17 | 17 | |
|
Collapse file
deps/v8/src/regexp/jsregexp.cc
Copy file name to clipboardExpand all lines: deps/v8/src/regexp/jsregexp.cc+1Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
5879 | 5879 | |
5880 | 5880 | |
5881 | 5881 | |
| 5882 | + |
5882 | 5883 | |
5883 | 5884 | |
5884 | 5885 | |
|
Collapse file
deps/v8/test/mjsunit/regress/regress-5199.js
Copy file name to clipboard+5Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
| 1 | + |
| 2 | + |
| 3 | + |
| 4 | + |
| 5 | + |
0 commit comments