Revision: 18022
Author:   [email protected]
Date:     Fri Nov 22 14:39:45 2013 UTC
Log:      Experimental parser: fix off by one error in utf8 decoding

[email protected]

BUG=

Review URL: https://codereview.chromium.org/83073004
http://code.google.com/p/v8/source/detail?r=18022

Modified:
 /branches/experimental/parser/tools/lexer_generator/code_generator.jinja

=======================================
--- /branches/experimental/parser/tools/lexer_generator/code_generator.jinja Fri Nov 22 14:18:15 2013 UTC +++ /branches/experimental/parser/tools/lexer_generator/code_generator.jinja Fri Nov 22 14:39:45 2013 UTC
@@ -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.

Reply via email to