OSDN Git Service

ART: ReadFully needs to fail when EOF
authorAndreas Gampe <agampe@google.com>
Fri, 20 Jun 2014 17:45:30 +0000 (10:45 -0700)
committerAndreas Gampe <agampe@google.com>
Fri, 20 Jun 2014 17:45:30 +0000 (10:45 -0700)
commit825201e9a7e718470e2dac222dffdee729050ac5
tree417dd2ac4002563797d2e579b2c28cb4e8089a02
parent2d2d6bb1ff8692efdddf104dabfb4a2d39877ff6
ART: ReadFully needs to fail when EOF

Besides an explicit error, we should stop trying when we unexpectedly
reach the end of the file.

Change-Id: I16d601e1b5bcbc39cb8c4dd7fd3dbb7d69016579
runtime/base/unix_file/fd_file.cc
runtime/base/unix_file/fd_file_test.cc