Bug 1735028 - check for missing signedData field r=keeler

This commit is contained in:
roytam1 2022-01-19 10:03:35 +08:00
commit e3fb994063

View file

@ -139,6 +139,11 @@ SEC_ReadPKCS7Certs(SECItem *pkcs7Item, CERTImportCertificateFunc f, void *arg)
goto done;
}
if (contentInfo.content.signedData == NULL) {
PORT_SetError(SEC_ERROR_BAD_DER);
goto done;
}
rv = SECSuccess;
certs = contentInfo.content.signedData->certificates;