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

Unified Diff: runtime/bin/builtin_natives.cc

Issue 10414021: Reland: Add more API fuzzing and fix the issues encountered. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 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
« no previous file with comments | « no previous file | runtime/bin/dartutils.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/builtin_natives.cc
diff --git a/runtime/bin/builtin_natives.cc b/runtime/bin/builtin_natives.cc
index eadd3296886852f8086ee33395396f9fd1981b28..875886eac1a038239ac5a2132ed280d2b3723161 100644
--- a/runtime/bin/builtin_natives.cc
+++ b/runtime/bin/builtin_natives.cc
@@ -129,7 +129,9 @@ void FUNCTION_NAME(Logger_PrintString)(Dart_NativeArguments args) {
void FUNCTION_NAME(Exit)(Dart_NativeArguments args) {
Dart_EnterScope();
- int64_t status = DartUtils::GetIntegerValue(Dart_GetNativeArgument(args, 0));
+ int64_t status = 0;
+ // Ignore result if passing invalid argument and just exit 0.
+ DartUtils::GetInt64Value(Dart_GetNativeArgument(args, 0), &status);
Dart_ExitScope();
exit(status);
}
« no previous file with comments | « no previous file | runtime/bin/dartutils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698