Chromium Code Reviews
[email protected] (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1046)

Issue 3492008: Fix a bug in the string wrapper for SHA256HashString. (Closed)

Created:
10 years, 3 months ago by Brian Ryner
Modified:
9 years, 7 months ago
Reviewers:
lzheng, noelutz
CC:
chromium-reviews, Paweł Hajdan Jr., brettw-cc_chromium.org, chrome-anti-phishing_googlegroups.com
Base URL:
http://src.chromium.org/git/chromium.git
Visibility:
Public.

Description

Fix a bug in the string wrapper for SHA256HashString. The wrapper was using the size of the input string as the number of hash bytes to compute, rather than the size of the output string (SHA256_LENGTH). Added a test for this. BUG=none TEST=Sha256Test.Test1_String Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=60491

Patch Set 1 #

Patch Set 2 : fix compile on windows #

Unified diffs Side-by-side diffs Delta from patch set Stats (+20 lines, -1 line) Patch
M base/sha2.cc View 1 chunk +1 line, -1 line 0 comments Download
M base/sha2_unittest.cc View 1 1 chunk +19 lines, -0 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
Brian Ryner
10 years, 3 months ago (2010-09-24 03:38:50 UTC) #1
Brian Ryner
Just fyi, this wasn't actually causing any problems in Chrome. This version of SHA256HashString is ...
10 years, 3 months ago (2010-09-24 03:45:14 UTC) #2
noelutz
LGTM thanks, noe.
10 years, 3 months ago (2010-09-24 15:58:49 UTC) #3
lzheng
10 years, 3 months ago (2010-09-24 16:37:16 UTC) #4
lgtm

Powered by Google App Engine
This is Rietveld 408576698