Reviewers: marja,
Message:
Committed patchset #1 manually as r18022 (presubmit successful).
Description:
Experimental parser: fix off by one error in utf8 decoding
[email protected]
BUG=
Committed: https://code.google.com/p/v8/source/detail?r=18022
Please review this at https://codereview.chromium.org/83073004/
SVN Base: https://v8.googlecode.com/svn/branches/experimental/parser
Affected files (+1, -1 lines):
M tools/lexer_generator/code_generator.jinja
Index: tools/lexer_generator/code_generator.jinja
diff --git a/tools/lexer_generator/code_generator.jinja
b/tools/lexer_generator/code_generator.jinja
index
f118166ce03c5557d95cd24c394421e2397fb344..e131b7cd1393289f3caa65d78b24f307cec0f88e
100644
--- a/tools/lexer_generator/code_generator.jinja
+++ b/tools/lexer_generator/code_generator.jinja
@@ -94,7 +94,7 @@
reinterpret_cast<uint8_t*>(cursor_),
buffer_end_ - cursor_,
&bytes_read);
- cursor_ += bytes_read;
+ cursor_ += bytes_read - 1;
if (long_char == unibrow::Utf8::kBadChar) goto default_action;
{%- else -%}
uncompilable code for {{encoding}}
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.