Closed
Bug 334234
Opened 19 years ago
Closed 19 years ago
PK11_NewSlotInfo returns freed objects if lock allocations fail
Categories
(NSS :: Libraries, defect, P2)
Tracking
(Not tracked)
RESOLVED
FIXED
3.11.1
People
(Reporter: timeless, Assigned: alvolkov.bgs)
References
()
Details
(Keywords: coverity, fixed1.8.0.10, fixed1.8.1.1, Whiteboard: CID 289)
Attachments
(1 file)
1.12 KB,
patch
|
nelson
:
review+
|
Details | Diff | Splinter Review |
found by coverity
Updated•19 years ago
|
Assignee: kengert → nobody
Updated•19 years ago
|
Severity: blocker → critical
Priority: -- → P2
Target Milestone: --- → 3.11.1
Version: 4.0 → 3.11
Comment 1•19 years ago
|
||
Several places we see code that does this in error paths:
364 PORT_Free(slot);
365 return slot;
Clearly that should be return NULL in each place.
Assignee: nobody → alexei.volkov.bugs
OS: Linux → All
Hardware: PC → All
Assignee | ||
Comment 2•19 years ago
|
||
Attachment #219160 -
Flags: review?(nelson)
Comment 3•19 years ago
|
||
Comment on attachment 219160 [details] [diff] [review]
fix
r=nelson
Attachment #219160 -
Flags: review?(nelson) → review+
Assignee | ||
Comment 4•19 years ago
|
||
tip:
/cvsroot/mozilla/security/nss/lib/pk11wrap/pk11slot.c,v <-- pk11slot.c
new revision: 1.88; previous revision: 1.87
3.11 branch:
/cvsroot/mozilla/security/nss/lib/pk11wrap/pk11slot.c,v <-- pk11slot.c
new revision: 1.87.2.1; previous revision: 1.87
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Comment 6•18 years ago
|
||
should this fix get picked up on the branch for the next firefox release?
Flags: blocking1.8.1.4?
Comment 7•18 years ago
|
||
Chris, What version of NSS is now being used in FF ?
Comment 8•18 years ago
|
||
FF2.0.0.1 uses NSS 3.11.4,
FF2.0.0.2 and FF1.5.0.10 use NSS 3.11.5
Keywords: fixed1.8.0.10,
fixed1.8.1.1
Updated•18 years ago
|
Flags: blocking1.8.1.4?
Updated•18 years ago
|
Group: security
You need to log in
before you can comment on or make changes to this bug.
Description
•