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

Unified Diff: tools/lexer_generator/code_generator.jinja

Issue 83073004: Experimental parser: fix off by one error in utf8 decoding (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/parser
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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}}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698