diff options
author | mattm@chromium.org <mattm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-11-17 01:41:36 +0000 |
---|---|---|
committer | mattm@chromium.org <mattm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-11-17 01:41:36 +0000 |
commit | 030567ede02ed86aac7c35e888eec9c6aa78d739 (patch) | |
tree | d1bc3cd70a54fc4d2102dcdda13d133267ad51cd /net | |
parent | 5ea8870a60149cdf544fd12c062c85650a261789 (diff) | |
download | chromium_src-030567ede02ed86aac7c35e888eec9c6aa78d739.zip chromium_src-030567ede02ed86aac7c35e888eec9c6aa78d739.tar.gz chromium_src-030567ede02ed86aac7c35e888eec9c6aa78d739.tar.bz2 |
Fix leak in X509UtilNSSTest VerifyCertificateSignature.
Forgot to initialize the ScopedPLArenaPool, so the ASN1 functions were
leaking.
BUG=88782
TEST=memory bots
TBR=cpu@chromium.org
Review URL: http://codereview.chromium.org/8588015
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@110417 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net')
-rw-r--r-- | net/base/x509_util_nss_unittest.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/base/x509_util_nss_unittest.cc b/net/base/x509_util_nss_unittest.cc index cd822b1..44481d3 100644 --- a/net/base/x509_util_nss_unittest.cc +++ b/net/base/x509_util_nss_unittest.cc @@ -34,7 +34,7 @@ CERTCertificate* CreateNSSCertHandleFromBytes(const char* data, size_t length) { void VerifyCertificateSignature(const std::string& der_cert, const std::vector<uint8>& der_spki) { - crypto::ScopedPLArenaPool arena; + crypto::ScopedPLArenaPool arena(PORT_NewArena(DER_DEFAULT_CHUNKSIZE)); CERTSignedData sd; memset(&sd, 0, sizeof(sd)); |