Description of problem: When my application attempts to load a private key file, it crashes in pem_CreateObject(). Version-Release number of selected component (if applicable): nss-3.12.10-4.fc16.x86_64 How reproducible: Always Steps to Reproduce: 1. SECMOD_LoadUserModule(libnsspem.so) 2. PK11_CreateGenericObject(CKA_CLASS=CKO_PRIVATE_KEY,CKA_TOKEN=CK_TRUE) Actual results: pem_CreateObject() passes an uninitialized certDER.data to nss_ZFreeIf() Additional info: When I cut it down to the bare minimum to try to create a simpler reproducer, I don't get a crash any more, but valgrind at least still flags the errors.
Created attachment 510308 [details] minimal attempt at a reproducer
Created attachment 510313 [details] patch for NSS which fixes my application
Nalin, I'm picking up your patch. It will be applied with other I have in the queue. Thanks.
I see the fix is already in rawhide, closing.