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

Issue 1271002: Annotated the scoped leak inside base::RSAPrivateKey::CreateFromPrivateKeyInf... (Closed)

Created:
10 years, 9 months ago by Alexander Potapenko
Modified:
9 years, 6 months ago
Reviewers:
wtc
CC:
chromium-reviews, brettw+cc_chromium.org, Paweł Hajdan Jr.
Visibility:
Public.

Description

Annotated the scoped leak inside base::RSAPrivateKey::CreateFromPrivateKeyInfo, removed the annotations from the tests calling it (RSAPrivateKeyUnitTest.* and SignatureCreatorTest.BasicTest) BUG=34742 TBR=wtc Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=42459

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -17 lines) Patch
M base/crypto/rsa_private_key_nss.cc View 2 chunks +4 lines, -0 lines 1 comment Download
M base/crypto/rsa_private_key_unittest.cc View 3 chunks +0 lines, -13 lines 0 comments Download
M base/crypto/signature_creator_unittest.cc View 2 chunks +0 lines, -4 lines 0 comments Download

Messages

Total messages: 1 (0 generated)
wtc
10 years, 9 months ago (2010-03-24 19:17:06 UTC) #1
LGTM.  Thanks!

http://codereview.chromium.org/1271002/diff/1/2
File base/crypto/rsa_private_key_nss.cc (right):

http://codereview.chromium.org/1271002/diff/1/2#newcode79
base/crypto/rsa_private_key_nss.cc:79: SECStatus rv = 
PK11_ImportDERPrivateKeyInfoAndReturnKey(slot,
If the annotation doesn't need to be at the beginning of a
function, it would be nice to put the annotation here because
the leak occurs in the PK11_ImportDERPrivateKeyInfoAndReturnKey
call.

It would be nice to reference NSS bug 518443 and note that
it's fixed in NSS 3.12.5, so that we know when we can remove
this annotation in the future.

Powered by Google App Engine
This is Rietveld 408576698