mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 529485, PSM crashes [@ ProcessAuthKeyId ] when CERT_DecodeAuthKeyID(arena, extData) fails. Fix suggested by timeless, minimal patch by me. r=kaie/bsmith. a2.0=dolske
This commit is contained in:
parent
eb446b3509
commit
cf5cea380b
@ -1274,9 +1274,13 @@ ProcessAuthKeyId(SECItem *extData,
|
||||
|
||||
arena = PORT_NewArena(DER_DEFAULT_CHUNKSIZE);
|
||||
if (!arena)
|
||||
return NS_ERROR_FAILURE;
|
||||
return NS_ERROR_OUT_OF_MEMORY;
|
||||
|
||||
ret = CERT_DecodeAuthKeyID (arena, extData);
|
||||
if (!ret) {
|
||||
rv = NS_ERROR_FAILURE;
|
||||
goto finish;
|
||||
}
|
||||
|
||||
if (ret->keyID.len > 0) {
|
||||
nssComponent->GetPIPNSSBundleString("CertDumpKeyID", local);
|
||||
|
Loading…
Reference in New Issue
Block a user