Revision: 12606 Author: [email protected] Date: Tue Sep 25 09:59:27 2012 Log: Fix off-by-one error introduced in r12598.
[email protected] BUG= Review URL: https://chromiumcodereview.appspot.com/10977009 http://code.google.com/p/v8/source/detail?r=12606 Modified: /branches/bleeding_edge/src/json-parser.h ======================================= --- /branches/bleeding_edge/src/json-parser.h Mon Sep 24 08:03:09 2012 +++ /branches/bleeding_edge/src/json-parser.h Tue Sep 25 09:59:27 2012 @@ -580,7 +580,7 @@ if (c0_ < 0x20) return Handle<String>::null(); running_hash = StringHasher::AddCharacterCore(running_hash, c0); position++; - if (position > source_length_) return Handle<String>::null(); + if (position >= source_length_) return Handle<String>::null(); c0 = seq_source_->SeqAsciiStringGet(position); } while (c0 != '"'); int length = position - position_; -- v8-dev mailing list [email protected] http://groups.google.com/group/v8-dev
