Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7643)

Unified Diff: chrome/utility/safe_browsing/mac/udif.cc

Issue 2528243002: Fix silent truncations when extracting values from CheckedNumeric (Closed)
Patch Set: compile fix Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/utility/safe_browsing/mac/hfs.cc ('k') | components/webcrypto/algorithms/aes_cbc.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/utility/safe_browsing/mac/udif.cc
diff --git a/chrome/utility/safe_browsing/mac/udif.cc b/chrome/utility/safe_browsing/mac/udif.cc
index 12d7be518c3035fbc43478ee8088ef413a9c07ee..daefe1028f00e91dbe822f640f7d471cf2d99e0a 100644
--- a/chrome/utility/safe_browsing/mac/udif.cc
+++ b/chrome/utility/safe_browsing/mac/udif.cc
@@ -681,7 +681,9 @@ off_t UDIFPartitionReadStream::Seek(off_t offset, int whence) {
new UDIFBlockChunkReadStream(stream_, block_size_, chunk));
}
current_chunk_ = chunk_number;
- if (chunk_stream_->Seek(decompress_read_offset.ValueOrDie(), SEEK_SET) == -1)
+ if (chunk_stream_->Seek(
+ base::ValueOrDieForType<off_t>(decompress_read_offset), SEEK_SET) ==
+ -1)
return -1;
return offset;
« no previous file with comments | « chrome/utility/safe_browsing/mac/hfs.cc ('k') | components/webcrypto/algorithms/aes_cbc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698