v8/test
jgruber 0da56e74cf [regexp] Restrict unicode property value expressions
The unicode property escape syntax restricts unicode property names and
unicode property values to consist only of characters taken from the
[a-zA-Z0-9_] character class. See the spec at:

https://tc39.github.io/proposal-regexp-unicode-property-escapes/

In most cases, we do not actually need to validate that this is the
case, since subsequent property lookup in ICU will fail (and throw a
SyntaxError) if the given property does not exist.

However, there one special case. The ICU lookup takes the property name
as a null-terminated string, so it will accept carefully malformed
property names (e.g. '\p{Number\0[}'). This can end up confusing the
regexp parser.

With this CL, we explicitly restrict potential property names / values
to the character set as specified.

Bug: v8:4743, chromium:793793
Change-Id: Ic97deea8602571ec6793b79c4bb858e1c7597405
Reviewed-on: https://chromium-review.googlesource.com/824272
Reviewed-by: Mathias Bynens <mathias@chromium.org>
Reviewed-by: Sathya Gunasekaran <gsathya@chromium.org>
Reviewed-by: Yang Guo <yangguo@chromium.org>
Commit-Queue: Jakob Gruber <jgruber@chromium.org>
Cr-Commit-Position: refs/heads/master@{#50130}
2017-12-15 14:17:34 +00:00
..
benchmarks [test] Code cleanup in testcfg.py 2017-12-13 13:36:20 +00:00
cctest Revert "[builtins] Port Object.p.toLocaleString to CSA from JS" 2017-12-15 08:49:16 +00:00
common Normalize casing of hexadecimal digits 2017-12-02 01:24:40 +00:00
debugger [test] Code cleanup in testcfg.py 2017-12-13 13:36:20 +00:00
fuzzer [test] Code cleanup in testcfg.py 2017-12-13 13:36:20 +00:00
inspector [inspector] fixed dcheck in stack trace 2017-12-14 20:41:09 +00:00
intl [test] Code cleanup in testcfg.py 2017-12-13 13:36:20 +00:00
js-perf-test [test] Add find-index.js to the list of resources for the test 2017-12-07 13:49:46 +00:00
memory [snapshot] add tracking for builtin snapshot size. 2017-08-31 07:29:31 +00:00
message [test] Remove output from testcase. 2017-12-13 15:00:52 +00:00
mjsunit [regexp] Restrict unicode property value expressions 2017-12-15 14:17:34 +00:00
mkgrokdump [test] Remove output from testcase. 2017-12-13 15:00:52 +00:00
mozilla [test] Remove output from testcase. 2017-12-13 15:00:52 +00:00
preparser [test] Code cleanup in testcfg.py 2017-12-13 13:36:20 +00:00
promises-aplus [test] Move data access from suite to test. 2017-12-13 09:14:47 +00:00
test262 [test] Search for use-strict in variant flags only. 2017-12-15 12:09:04 +00:00
unittests [interpreter] Merge StaGlobal[Sloppy/Strict] into one bytecode. 2017-12-14 10:03:00 +00:00
wasm-spec-tests [test] Code cleanup in testcfg.py 2017-12-13 13:36:20 +00:00
webkit [test] Remove output from testcase. 2017-12-13 15:00:52 +00:00
bot_default.gyp [wasm] Add wasm spec tests to the v8 test runner 2017-04-27 13:00:13 +00:00
bot_default.isolate [wasm] Add wasm spec tests to the v8 test runner 2017-04-27 13:00:13 +00:00
BUILD.gn [wasm] Remove the wasm-asmjs fuzzer 2017-06-21 10:59:35 +00:00
default.gyp [wasm] Add wasm spec tests to the v8 test runner 2017-04-27 13:00:13 +00:00
default.isolate [wasm] Add wasm spec tests to the v8 test runner 2017-04-27 13:00:13 +00:00
optimize_for_size.gyp
optimize_for_size.isolate [debugger] basic test infrastructure for new debugger test api. 2016-10-21 06:38:05 +00:00
perf.gyp
perf.isolate Reland "Reland "[test] Creating command before execution phase."" 2017-12-04 13:40:29 +00:00