| Index: chrome/utility/safe_browsing/mac/hfs.cc
|
| diff --git a/chrome/utility/safe_browsing/mac/hfs.cc b/chrome/utility/safe_browsing/mac/hfs.cc
|
| index f984636e316bed050ea7008111aaf336c14844c7..9a27223be375a2cc0455541c930eff3ffb27d15e 100644
|
| --- a/chrome/utility/safe_browsing/mac/hfs.cc
|
| +++ b/chrome/utility/safe_browsing/mac/hfs.cc
|
| @@ -369,7 +369,10 @@ bool HFSForkReadStream::Read(uint8_t* buffer,
|
|
|
| // Read the entire extent now, to avoid excessive seeking and re-reading.
|
| if (!read_current_extent_) {
|
| - hfs_->SeekToBlock(extent->startBlock);
|
| + if (!hfs_->SeekToBlock(extent->startBlock)) {
|
| + DLOG(ERROR) << "Failed to seek to block " << extent->startBlock;
|
| + return false;
|
| + }
|
| current_extent_data_.resize(extent_size.ValueOrDie());
|
| if (!hfs_->stream()->ReadExact(¤t_extent_data_[0],
|
| extent_size.ValueOrDie())) {
|
|
|