зеркало из https://github.com/mozilla/pjs.git
Bug 151940: SEC_PKCS12DecoderVerify should call SEC_ASN1DecoderFinish first
to detect insufficient input data error.
This commit is contained in:
Родитель
801fbfc78f
Коммит
bf909b356a
|
@ -1408,6 +1408,12 @@ SEC_PKCS12DecoderVerify(SEC_PKCS12DecoderContext *p12dcx)
|
|||
return SECFailure;
|
||||
}
|
||||
|
||||
rv = SEC_ASN1DecoderFinish(p12dcx->pfxDcx);
|
||||
p12dcx->pfxDcx = NULL;
|
||||
if(rv != SECSuccess) {
|
||||
return rv;
|
||||
}
|
||||
|
||||
/* check the signature or the mac depending on the type of
|
||||
* integrity used.
|
||||
*/
|
||||
|
|
Загрузка…
Ссылка в новой задаче