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

Unified Diff: runtime/vm/json_test.cc

Issue 821193003: Fix out-of-bounds access in JSONStream test. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years 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: runtime/vm/json_test.cc
===================================================================
--- runtime/vm/json_test.cc (revision 42458)
+++ runtime/vm/json_test.cc (working copy)
@@ -402,8 +402,8 @@
EXPECT_STREQ("a", js.command());
EXPECT(js.num_options() == 0);
- js.SetOptions(&option_keys[0], &option_values[0], 3);
- EXPECT(js.num_options() == 3);
+ js.SetOptions(&option_keys[0], &option_values[0], 2);
+ EXPECT(js.num_options() == 2);
EXPECT(!js.HasOption("lizard"));
EXPECT(js.HasOption("dog"));
EXPECT(js.HasOption("cat"));
« 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