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

Unified Diff: crypto/secure_hash.cc

Issue 1997153002: libchrome: Several upstreamable fixes from libchrome Base URL: https://chromium.googlesource.com/a/chromium/src.git@master
Patch Set: Also fix unit tests Created 4 years, 7 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
Index: crypto/secure_hash.cc
diff --git a/crypto/secure_hash.cc b/crypto/secure_hash.cc
index 2a5a1f02089e6f1ddd24523ab6f39fd31bea744a..fbbed777e11896cfdc04ef1617fa2e7cabdf71ab 100644
--- a/crypto/secure_hash.cc
+++ b/crypto/secure_hash.cc
@@ -22,7 +22,7 @@ class SecureHashSHA256 : public SecureHash {
SHA256_Init(&ctx_);
}
- SecureHashSHA256(const SecureHashSHA256& other) {
+ SecureHashSHA256(const SecureHashSHA256& other) : SecureHash() {
Ryan Sleevi 2016/05/21 10:33:33 Why. The existing code is doing the right thing.
Luis Héctor Chávez 2016/05/24 15:27:53 Nevermind, I realized the branch I was building th
memcpy(&ctx_, &other.ctx_, sizeof(ctx_));
}

Powered by Google App Engine
This is Rietveld 408576698