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

Unified Diff: src/json-parser.cc

Issue 7084023: Correctly set the length of string before creating filler object in the json parser (fixes crbug ... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 9 years, 7 months 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
Index: src/json-parser.cc
===================================================================
--- src/json-parser.cc (revision 8088)
+++ src/json-parser.cc (working copy)
@@ -453,6 +453,7 @@
SeqTwoByteString::SizeFor(kInitialSpecialStringSize * allocation_count);
int delta = allocated_string_size - string_size;
Address start_filler_object = seq_two_byte->address() + string_size;
+ seq_two_byte->set_length(count);
isolate()->heap()->CreateFillerObjectAt(start_filler_object, delta);
}
string_val_ = isolate()->factory()->NewConsString(ascii, seq_two_byte);
« no previous file with comments | « no previous file | test/mjsunit/regress/regress-crbug-84186.js » ('j') | test/mjsunit/regress/regress-crbug-84186.js » ('J')

Powered by Google App Engine
This is Rietveld 408576698