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

Unified Diff: runtime/vm/service.cc

Issue 1052373010: Fix service rpc parameter validation (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 8 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/service.cc
diff --git a/runtime/vm/service.cc b/runtime/vm/service.cc
index d85b458680b7329d5eebbb3ebd7a34a167b83e61..036bb832f9b9ae2f61ed7538a2e18acb884a27a6 100644
--- a/runtime/vm/service.cc
+++ b/runtime/vm/service.cc
@@ -409,7 +409,7 @@ static bool ValidateParameters(const MethodParameter* const* parameters,
PrintMissingParamError(js, name);
return false;
}
- if (!parameter->Validate(value)) {
+ if (has_parameter && !parameter->Validate(value)) {
PrintInvalidParamError(js, name);
return false;
}
« 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