mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 13:51:41 +00:00
Patch contributed by timeless@bemail.org
[Bug 336466] oom crash [@ CERT_DecodeAuthKeyID]. r=nelson
This commit is contained in:
parent
300360c5a6
commit
4176224c5b
@ -119,10 +119,10 @@ CERT_DecodeAuthKeyID (PRArenaPool *arena, SECItem *encodedValue)
|
||||
|
||||
do {
|
||||
mark = PORT_ArenaMark (arena);
|
||||
value = (CERTAuthKeyID*)PORT_ArenaZAlloc (arena, sizeof (*value));
|
||||
value->DERAuthCertIssuer = NULL;
|
||||
value = (CERTAuthKeyID*)PORT_ArenaZAlloc (arena, sizeof (*value));
|
||||
if (value == NULL)
|
||||
break;
|
||||
value->DERAuthCertIssuer = NULL;
|
||||
/* copy the DER into the arena, since Quick DER returns data that points
|
||||
into the DER input, which may get freed by the caller */
|
||||
rv = SECITEM_CopyItem(arena, &newEncodedValue, encodedValue);
|
||||
|
Loading…
Reference in New Issue
Block a user