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
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 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.
Fix checked into NSS 3.4 branch and the tip.