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

Unified Diff: runtime/vm/dart_api_message.cc

Issue 10829444: Avoid trusting the length encoded in the Snapshot if there is an (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 4 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 | « runtime/vm/dart_api_message.h ('k') | runtime/vm/isolate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/dart_api_message.cc
===================================================================
--- runtime/vm/dart_api_message.cc (revision 11409)
+++ runtime/vm/dart_api_message.cc (working copy)
@@ -478,8 +478,6 @@
for (int i = 0; i < field_count; i++) {
Write<RawObject*>(Integer::New(data[i]));
}
-
- FinalizeBuffer();
}
@@ -622,7 +620,7 @@
}
return;
}
- return WriteCObjectInlined(object, type);
+ WriteCObjectInlined(object, type);
}
@@ -645,7 +643,7 @@
AddToForwardList(object);
return;
}
- return WriteCObjectInlined(object, type);
+ WriteCObjectInlined(object, type);
}
@@ -782,7 +780,6 @@
WriteForwardedCObject(forward_list_[i]);
}
UnmarkAllCObjects(object);
- FinalizeBuffer();
}
} // namespace dart
« no previous file with comments | « runtime/vm/dart_api_message.h ('k') | runtime/vm/isolate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698