Last Comment Bug 166893 - Cert value is corrupted in Token Cache after import.
: Cert value is corrupted in Token Cache after import.
Status: RESOLVED FIXED
:
Product: NSS
Classification: Components
Component: Libraries (show other bugs)
: 3.4.2
: All All
: -- normal (vote)
: 3.4.3
Assigned To: Robert Relyea
: Bishakha Banerjee
Mentors:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2002-09-05 10:43 PDT by Robert Relyea
Modified: 2002-09-17 13:59 PDT (History)
3 users (show)
See Also:
Crash Signature:
(edit)
QA Whiteboard:
Iteration: ---
Points: ---


Attachments
Copy the DerData (609 bytes, patch)
2002-09-05 10:45 PDT, Robert Relyea
wtc: review+
Details | Diff | Splinter Review

Description Robert Relyea 2002-09-05 10:43:23 PDT
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
Comment 1 Robert Relyea 2002-09-05 10:45:44 PDT
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 Wan-Teh Chang 2002-09-05 10:49:05 PDT
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.
Comment 3 Robert Relyea 2002-09-06 11:58:23 PDT
Fix checked into NSS 3.4 branch and the tip.

Note You need to log in before you can comment on or make changes to this bug.