зеркало из https://github.com/mozilla/gecko-dev.git
In SEC_PKCS12DecoderGetCerts, don't dereference p12dcx until AFTER it has
been checked for NULL. Coverity bug 336971. r=alexei.volkov
This commit is contained in:
Родитель
0a6525e406
Коммит
780c599d61
|
@ -2540,7 +2540,7 @@ CERTCertList *
|
||||||
SEC_PKCS12DecoderGetCerts(SEC_PKCS12DecoderContext *p12dcx)
|
SEC_PKCS12DecoderGetCerts(SEC_PKCS12DecoderContext *p12dcx)
|
||||||
{
|
{
|
||||||
CERTCertList *certList = NULL;
|
CERTCertList *certList = NULL;
|
||||||
sec_PKCS12SafeBag **safeBags = p12dcx->safeBags;
|
sec_PKCS12SafeBag **safeBags;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
if (!p12dcx || !p12dcx->safeBags || !p12dcx->safeBags[0]) {
|
if (!p12dcx || !p12dcx->safeBags || !p12dcx->safeBags[0]) {
|
||||||
|
|
Загрузка…
Ссылка в новой задаче