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

Unified Diff: runtime/bin/dbg_connection.cc

Issue 12035086: Verify integrity of JSOM messages sent to debugger client (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 11 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
« no previous file with comments | « no previous file | runtime/platform/json.h » ('j') | runtime/platform/json.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/dbg_connection.cc
===================================================================
--- runtime/bin/dbg_connection.cc (revision 17486)
+++ runtime/bin/dbg_connection.cc (working copy)
@@ -140,7 +140,7 @@
static bool IsValidJSON(const char* msg) {
dart::JSONReader r(msg);
- return r.EndOfObject() != NULL;
+ return r.CheckMessage();
}
« no previous file with comments | « no previous file | runtime/platform/json.h » ('j') | runtime/platform/json.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698