diff options
author | kinuko@chromium.org <kinuko@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-08 03:08:31 +0000 |
---|---|---|
committer | kinuko@chromium.org <kinuko@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-08 03:08:31 +0000 |
commit | 89a6adb8f80456dea06394d9a9292367aea9898a (patch) | |
tree | 4a13c3dda72f8bbe8e6afa4bc665f705cc015668 /webkit/fileapi | |
parent | bcf3209e667e69fe3170c6682fbbc0121dd2f6b8 (diff) | |
download | chromium_src-89a6adb8f80456dea06394d9a9292367aea9898a.zip chromium_src-89a6adb8f80456dea06394d9a9292367aea9898a.tar.gz chromium_src-89a6adb8f80456dea06394d9a9292367aea9898a.tar.bz2 |
Fixed the bug 75018: incorrect conditional jump in fileapi::FileSystemUsageCache::Read.
BUG=75018
TEST=none
Review URL: http://codereview.chromium.org/6621061
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@77239 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/fileapi')
-rw-r--r-- | webkit/fileapi/file_system_usage_cache.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/webkit/fileapi/file_system_usage_cache.cc b/webkit/fileapi/file_system_usage_cache.cc index 05fbea6..24b3c26 100644 --- a/webkit/fileapi/file_system_usage_cache.cc +++ b/webkit/fileapi/file_system_usage_cache.cc @@ -75,7 +75,9 @@ int64 FileSystemUsageCache::Read(const FilePath& usage_file_path, uint32* dirty) { char buffer[kUsageFileSize]; const char *header; - file_util::ReadFile(usage_file_path, buffer, kUsageFileSize); + if (kUsageFileSize != + file_util::ReadFile(usage_file_path, buffer, kUsageFileSize)) + return -1; Pickle read_pickle(buffer, kUsageFileSize); void* iter = NULL; int64 fs_usage; |