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

Unified Diff: chrome/browser/history/expire_history_backend.cc

Issue 14057019: Fix overflow in history expiry code in 64 bit builds. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 months 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/history/expire_history_backend.cc
diff --git a/chrome/browser/history/expire_history_backend.cc b/chrome/browser/history/expire_history_backend.cc
index 793d75a9b4751d9cd02a48775dbfd3cba4f1e109..0eceed876f09896435bcc7ba964d8f5e65e30e56 100644
--- a/chrome/browser/history/expire_history_backend.cc
+++ b/chrome/browser/history/expire_history_backend.cc
@@ -327,7 +327,7 @@ void ExpireHistoryBackend::ArchiveHistoryBefore(Time end_time) {
// Archive as much history as possible before the given date.
ArchiveSomeOldHistory(end_time, GetAllVisitsReader(),
- std::numeric_limits<size_t>::max());
+ std::numeric_limits<int>::max());
ParanoidExpireHistory();
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698