Closed
Bug 337009
Opened 20 years ago
Closed 20 years ago
Coverity OOM crash [@ nssList_Count - nssTrustDomain_GetCertsFromCache] Dereferencing possibly NULL "certList"
Categories
(NSS :: Libraries, defect, P2)
Tracking
(Not tracked)
RESOLVED
FIXED
3.11.2
People
(Reporter: timeless, Assigned: alvolkov.bgs)
References
()
Details
(Keywords: coverity, crash, Whiteboard: CID 294)
Crash Data
Attachments
(1 file)
|
966 bytes,
patch
|
nelson
:
review+
|
Details | Diff | Splinter Review |
Event returned_null: Function "nssList_Create" returned NULL value (checked 15 out of 17 times)
Updated•20 years ago
|
Hardware: PC → All
Target Milestone: --- → 3.11.2
Updated•20 years ago
|
Priority: -- → P2
| Assignee | ||
Updated•20 years ago
|
Assignee: nobody → alexei.volkov.bugs
| Assignee | ||
Comment 1•20 years ago
|
||
this part of the code if never used(according to lxr). May be this is something
that need to be removed.
Attachment #222395 -
Flags: review?(nelson)
Comment 2•20 years ago
|
||
(In reply to comment #1)
> this part of the code if never used(according to lxr).
> May be this is something that need to be removed.
Are you saying that nssTrustDomain_GetCertsFromCache is never called?
(Appears to me that it is)
Or are you saying that all callers always provde a non-NULL certListOpt?
Comment 3•20 years ago
|
||
Comment on attachment 222395 [details] [diff] [review]
return null if could not create an empty list
r=nelson
Attachment #222395 -
Flags: review?(nelson) → review+
| Assignee | ||
Comment 4•20 years ago
|
||
It is called at least four times, but all the callers provide already created certListOpt
| Assignee | ||
Comment 5•20 years ago
|
||
trunk:
/cvsroot/mozilla/security/nss/lib/pki/tdcache.c,v <-- tdcache.c
new revision: 1.43; previous revision: 1.42
3.11 branch:
/cvsroot/mozilla/security/nss/lib/pki/tdcache.c,v <-- tdcache.c
new revision: 1.42.2.1; previous revision: 1.42
| Assignee | ||
Updated•20 years ago
|
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Updated•20 years ago
|
Summary: OOM crash [@ nssList_Count - nssTrustDomain_GetCertsFromCache] Dereferencing possibly NULL "certList" → Coverity OOM crash [@ nssList_Count - nssTrustDomain_GetCertsFromCache] Dereferencing possibly NULL "certList"
Updated•15 years ago
|
Crash Signature: [@ nssList_Count - nssTrustDomain_GetCertsFromCache]
You need to log in
before you can comment on or make changes to this bug.
Description
•