Ok I was quite sure that CERT_LIST_HEAD was already guarding us from NULL pointers (as in many NSS places i didn't see the check) but it's not the case [1], so thanks!
[1] https://searchfox.org/mozilla-central/source/security/nss/lib/certdb/certt.h#361
Ok I was quite sure that CERT_LIST_HEAD was already guarding us from NULL pointers (as in many NSS places i didn't see the check) but it's not the case [1], so thanks!
[1] https:/ /searchfox. org/mozilla- central/ source/ security/ nss/lib/ certdb/ certt.h# 361