Closed
Bug 1042634
Opened 10 years ago
Closed 10 years ago
Incorrect NULL check in function CRMF_CertReqMsgGetPOPKeyEncipherment (servget.c)
Categories
(NSS :: Libraries, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
3.17
People
(Reporter: sachingpt999, Unassigned)
Details
Attachments
(1 file)
360 bytes,
patch
|
rrelyea
:
review+
|
Details | Diff | Splinter Review |
In the file nss/lib/crmf/servget.c, the function CRMF_CertReqMsgGetPOPKeyEncipherment performs an incorrect NULL check. *destKey is being allocated memory, but null check is being performed on destKey. It should be performed on *destKey instead. 3.16.3 version code: *destKey = PORT_ZNew(CRMFPOPOPrivKey); if (destKey == NULL) { return SECFailure; } Should be: *destKey = PORT_ZNew(CRMFPOPOPrivKey); if (*destKey == NULL) { return SECFailure; }
Reporter | ||
Updated•10 years ago
|
Mentor: nelson, rrelyea, emaldona, wtc
Comment 1•10 years ago
|
||
Reminder for someone to check the bug and proposed patch.
Comment 2•10 years ago
|
||
(In reply to Nathan Yee [:nyee] from comment #1) > Reminder for someone to check the bug and proposed patch.
Comment 3•10 years ago
|
||
(In reply to Nathan Yee [:nyee] from comment #1) > Reminder for someone to check the bug and proposed patch.
Updated•10 years ago
|
Attachment #8460838 -
Attachment is patch: true
Attachment #8460838 -
Attachment mime type: text/x-patch → text/plain
Updated•10 years ago
|
Flags: needinfo?(kaie)
Flags: needinfo?(emaldona)
Reporter | ||
Updated•10 years ago
|
Mentor: emaldona, kaie, nelson, rrelyea, ryan.sleevi, wtc
Reporter | ||
Updated•10 years ago
|
Mentor: emaldona, kaie, nelson, rrelyea, ryan.sleevi, wtc
Reporter | ||
Updated•10 years ago
|
Mentor: gavin.sharp
Updated•10 years ago
|
Mentor: emaldona, gavin.sharp, kaie, nelson, rrelyea, ryan.sleevi, wtc
Reporter | ||
Updated•10 years ago
|
Attachment #8460838 -
Flags: review?(rrelyea)
Comment 4•10 years ago
|
||
Comment on attachment 8460838 [details] [diff] [review] Patch for the above raised bug Review of attachment 8460838 [details] [diff] [review]: ----------------------------------------------------------------- r+ rrelyea
Attachment #8460838 -
Flags: review?(rrelyea) → review+
Updated•10 years ago
|
Keywords: checkin-needed
Updated•10 years ago
|
Flags: needinfo?(kaie)
Updated•10 years ago
|
Status: UNCONFIRMED → NEW
Ever confirmed: true
Updated•10 years ago
|
Flags: needinfo?(emaldona)
Comment 5•10 years ago
|
||
https://hg.mozilla.org/projects/nss/rev/791617b5572a
Status: NEW → RESOLVED
Closed: 10 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → 3.17
You need to log in
before you can comment on or make changes to this bug.
Description
•