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

Unified Diff: runtime/bin/directory_impl.dart

Issue 10408060: Fuzzing of dart:io Directory API. (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 | « runtime/bin/directory.cc ('k') | tests/standalone/io/directory_fuzz_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/directory_impl.dart
diff --git a/runtime/bin/directory_impl.dart b/runtime/bin/directory_impl.dart
index 6d9ad0cc72ff0593191905f98ad7f30ca0945c3a..77730b785a7fa4648f8d67134ad3bb54301eb7e1 100644
--- a/runtime/bin/directory_impl.dart
+++ b/runtime/bin/directory_impl.dart
@@ -244,9 +244,11 @@ class _DirectoryLister implements DirectoryLister {
var err = new OSError(
message[kResponseError][_FileUtils.kOSErrorResponseMessage],
message[kResponseError][_FileUtils.kOSErrorResponseErrorCode]);
+ var errorPath = message[kResponsePath];
+ if (errorPath == null) errorPath = path;
_reportError(new DirectoryIOException("Directory listing failed",
- message[kResponsePath],
- err));
+ errorPath,
+ err));
} else {
_reportError(new DirectoryIOException("Internal error"));
}
« no previous file with comments | « runtime/bin/directory.cc ('k') | tests/standalone/io/directory_fuzz_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698