Closed
Bug 975056
Opened 12 years ago
Closed 12 years ago
[capi] fix check for NULL ptr lack in nss_ckcapi_CreatePrivateKey()
Categories
(NSS :: Libraries, defect, P2)
Tracking
(Not tracked)
RESOLVED
FIXED
3.16.1
People
(Reporter: maksqwe1, Assigned: elio.maldonado.batiz)
Details
Attachments
(2 files)
|
527 bytes,
patch
|
elio.maldonado.batiz
:
review+
|
Details | Diff | Splinter Review |
|
770 bytes,
patch
|
rrelyea
:
review+
|
Details | Diff | Splinter Review |
User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:27.0) Gecko/20100101 Firefox/27.0 (Beta/Release)
Build ID: 20140212131424
Steps to reproduce:
.\security\nss\lib\ckfw\capi\cobject.c -- 2160
providerName = ckcapi_getDefaultProvider(pError);
if ((char *)NULL == providerName ) { // << ========
return (ckcapiInternalObject *)NULL;
}
containerName = ckcapi_getContainer(pError, &keyID);
if ((char *)NULL == providerName ) { // << ========
| Reporter | ||
Updated•12 years ago
|
OS: All → Windows 7
Hardware: All → x86_64
| Reporter | ||
Updated•12 years ago
|
Attachment #8379179 -
Flags: review?(emaldona)
| Assignee | ||
Comment 1•12 years ago
|
||
Comment on attachment 8379179 [details] [diff] [review]
null_ptr.patch
Review of attachment 8379179 [details] [diff] [review]:
-----------------------------------------------------------------
Thank you Maks for the patch. r+ in general. You must have done it on the mozilla central source tree judging for the security path so it doesn't apply cleanly on the NSS tree. I'll attach a modified version of your patch that's easier to apply.
Attachment #8379179 -
Flags: review?(emaldona) → review+
| Assignee | ||
Updated•12 years ago
|
Status: UNCONFIRMED → NEW
Ever confirmed: true
| Assignee | ||
Comment 2•12 years ago
|
||
| Assignee | ||
Updated•12 years ago
|
Attachment #8392962 -
Flags: review?(rrelyea)
| Assignee | ||
Updated•12 years ago
|
Assignee: nobody → emaldona
Comment 3•12 years ago
|
||
Comment on attachment 8392962 [details] [diff] [review]
Maks Naumov's patch modified for the NSS source tree
r+ rrelyea
Attachment #8392962 -
Flags: review?(rrelyea) → review+
| Assignee | ||
Comment 4•12 years ago
|
||
Patch checked in: http://hg.mozilla.org/projects/nss/rev/a0115aed4a14
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Updated•12 years ago
|
Priority: -- → P2
Target Milestone: --- → 3.16.1
You need to log in
before you can comment on or make changes to this bug.
Description
•