Cert value is corrupted in Token Cache after import.

RESOLVED FIXED in 3.4.3

Status

NSS
Libraries
RESOLVED FIXED
15 years ago
15 years ago

People

(Reporter: Robert Relyea, Assigned: Robert Relyea)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Assignee)

Description

15 years ago
When importing a certificate through PK11_ImportDERCert(), the derValue was
passed in from the application and not copied. The PK11_ImportCert() call might
then store the related certificate in a smart card cache. Later when we look at
the cert, the derCert value will appear corrupted because the application has
long since freed the derCert value. Fix: copy the der into the cert's arena
(Assignee)

Comment 1

15 years ago
Created attachment 97967 [details] [diff] [review]
Copy the DerData

NOTE: This patch is against the 3.4.2 branch, a similar by different patch is
also needed for the tip.

Comment 2

15 years ago
Comment on attachment 97967 [details] [diff] [review]
Copy the DerData

r=wtc.

Please go ahead and check in this patch on the
NSS_3_4_BRANCH and also check it in on the
NSS_3_5_BRANCH and the tip as appropriate.
Attachment #97967 - Flags: review+
(Assignee)

Updated

15 years ago
Version: 3.4.2 → 3.6
(Assignee)

Updated

15 years ago
Target Milestone: --- → 3.6
Version: 3.6 → 3.4.2
(Assignee)

Comment 3

15 years ago
Fix checked into NSS 3.4 branch and the tip.
Status: NEW → RESOLVED
Last Resolved: 15 years ago
Resolution: --- → FIXED

Updated

15 years ago
Target Milestone: 3.6 → 3.4.3
You need to log in before you can comment on or make changes to this bug.