If you think a bug might affect users in the 57 release, please set the correct tracking and status flags for Release Management.

add_nickname_entry leaks ce when it fails to allocate nickname

VERIFIED INVALID

Status

NSS
Libraries
VERIFIED INVALID
8 years ago
8 years ago

People

(Reporter: timeless, Unassigned)

Tracking

({coverity, mlk})

Firefox Tracking Flags

(Not tracked)

Details

(URL)

(Reporter)

Description

8 years ago
625         ce = new_cache_entry(arena, subjectList, PR_FALSE);
626         if (!ce) {
627             return PR_FAILURE;
628         }
629         nickname = nssUTF8_Duplicate(certNickname, arena);
630 if (!nickname) {
631 return PR_FAILURE;
This is an arena allocation.  
It gets freed when the arena is destroyed at
http://mxr.mozilla.org/mozilla-central/source/security/nss/lib/pki/tdcache.c#864
Status: NEW → RESOLVED
Last Resolved: 8 years ago
Resolution: --- → INVALID
(Reporter)

Comment 2

8 years ago
oops
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.