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

pk12util erroneously reports error -8173, no memory

RESOLVED FIXED in 3.9.1

Status

NSS
Tools
P2
normal
RESOLVED FIXED
14 years ago
14 years ago

People

(Reporter: Nelson Bolyard (seldom reads bugmail), Assigned: Nelson Bolyard (seldom reads bugmail))

Tracking

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

Emil Assarsson had some trouble with pk12util.  He did some debugging, and 
wrote:

> I have a problem with some allocation errors in SEC_PKCS12AddCertAndKey(). 
> I have the same error if I use SEC_PKCS12CreatePasswordPrivSafe().
>
> I get a return value != SECSuccess and the PR_GetError() is returning a 
> -8173 (SEC_ERROR_NO_MEMORY). 
> Is this related to the arena from the ExportContext? 
> And what can I do about it? 

I looked into it, and found several bugs in pk12util that cause wrong error
messages to be shown.  I also found several misnamed functions, and found
that the Usage message was not being displayed when it should be.  

Patch forthcoming.
(Assignee)

Comment 1

14 years ago
Created attachment 139488 [details] [diff] [review]
patch v1

Fixes problems reported above.
(Assignee)

Comment 2

14 years ago
Comment on attachment 139488 [details] [diff] [review]
patch v1

Bob, please review
Attachment #139488 - Flags: review?(rrelyea0264)
(Assignee)

Comment 3

14 years ago
Target NSS 3.9.1
Priority: -- → P2
Target Milestone: --- → 3.9.1

Updated

14 years ago
Attachment #139488 - Flags: review?(rrelyea0264) → review+
(Assignee)

Comment 4

14 years ago
/cvsroot/mozilla/security/nss/cmd/pk12util/pk12util.c,v  <--  pk12util.c
new revision: 1.28; previous revision: 1.27
Status: NEW → RESOLVED
Last Resolved: 14 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.