diff options
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; |