v8/src/ast
Marja Hölttä 141ede2ec1 [ast-value-factory] Fix length mismatch in string comparison
When comparing two-byte strings, the correct number of characters to
compare is length(), not byte_length().

The bug was introduced in
https://chromium-review.googlesource.com/c/v8/v8/+/2533038

There's no regression test, since going beyond the AstRawString
boundary generally doesn't crash.

Bug: chromium:1151602
Change-Id: I32c297c2751835dd7574ff928d2d5b8346b4381a
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2551110
Reviewed-by: Leszek Swirski <leszeks@chromium.org>
Commit-Queue: Marja Hölttä <marja@chromium.org>
Cr-Commit-Position: refs/heads/master@{#71330}
2020-11-23 09:20:39 +00:00
..
ast-function-literal-id-reindexer.cc [parser] Fix AST func reindexing for function fields 2020-10-01 07:53:01 +00:00
ast-function-literal-id-reindexer.h [parser] Fix reindexing of functions inside classes 2019-06-19 11:27:55 +00:00
ast-source-ranges.h [coverage] Add dedicated FunctionLiteral counters 2019-05-16 12:43:33 +00:00
ast-traversal-visitor.h [ast] Remove unused StoreInArrayLiteral 2020-02-20 12:25:18 +00:00
ast-value-factory.cc [ast-value-factory] Fix length mismatch in string comparison 2020-11-23 09:20:39 +00:00
ast-value-factory.h [runtime] Rename Name::Hash() to Name::EnsureHash() 2020-11-16 10:48:15 +00:00
ast.cc [asserts] Make assert scopes LocalHeap friendly 2020-11-20 17:39:14 +00:00
ast.h Revert "GetCurrentStackPosition() -> base::Stack::GetCurrentStackPosition()" 2020-11-03 09:42:42 +00:00
DIR_METADATA Add DIR_METADATA files to v8. 2020-10-20 22:12:28 +00:00
modules.cc Sort import assertions by code point order of the keys 2020-11-12 20:03:03 +00:00
modules.h Sort import assertions by code point order of the keys 2020-11-12 20:03:03 +00:00
OWNERS Add DIR_METADATA files to v8. 2020-10-20 22:12:28 +00:00
prettyprinter.cc [regexp] Add 'l' flag to force experimental engine 2020-10-30 08:33:06 +00:00
prettyprinter.h Revert "[ast] Remove literal allocation from CallPrinter" 2020-04-29 17:13:34 +00:00
scopes.cc [asserts] Make assert scopes LocalHeap friendly 2020-11-20 17:39:14 +00:00
scopes.h [compiler] Never serialize ScopeInfo 2020-10-08 14:58:41 +00:00
source-range-ast-visitor.cc [coverage] remove the last continuation range before synthetic return 2020-07-07 15:53:21 +00:00
source-range-ast-visitor.h [coverage] Improve whitespace precision of coverage reporting 2020-01-07 10:29:45 +00:00
variables.cc Reland "Implement top-level await for REPL mode" 2019-12-06 10:13:00 +00:00
variables.h [class] mark private name load as immutable 2020-05-08 07:29:19 +00:00