Index: runtime/bin/file_android.cc |
diff --git a/runtime/bin/file_android.cc b/runtime/bin/file_android.cc |
index b27d83c97a54bbfd24b098bc5fef8f4e091ee51b..a636c3edcaa2a16828ec5aef3c707eca6d82543d 100644 |
--- a/runtime/bin/file_android.cc |
+++ b/runtime/bin/file_android.cc |
@@ -81,6 +81,7 @@ bool File::IsClosed() { |
MappedMemory* File::Map(MapType type, int64_t position, int64_t length) { |
ASSERT(handle_->fd() >= 0); |
+ ASSERT(length > 0); |
int prot = PROT_NONE; |
switch (type) { |
case kReadOnly: |