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

Unified Diff: chrome/common/visitedlink_common.cc

Issue 7068017: Fix bug in history salt computation (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 9 years, 6 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 | « chrome/browser/visitedlink/visitedlink_master.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/visitedlink_common.cc
diff --git a/chrome/common/visitedlink_common.cc b/chrome/common/visitedlink_common.cc
index 9cd1e848a090396f1b24c6be411d24bcf57c90c9..7d198e145d7a0289a6399f004c9d1c5736652e7f 100644
--- a/chrome/common/visitedlink_common.cc
+++ b/chrome/common/visitedlink_common.cc
@@ -81,7 +81,7 @@ VisitedLinkCommon::Fingerprint VisitedLinkCommon::ComputeURLFingerprint(
MD5Context ctx;
MD5Init(&ctx);
- MD5Update(&ctx, salt, sizeof(salt));
+ MD5Update(&ctx, salt, LINK_SALT_LENGTH * sizeof(uint8));
MD5Update(&ctx, canonical_url, url_len * sizeof(char));
MD5Digest digest;
« no previous file with comments | « chrome/browser/visitedlink/visitedlink_master.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698