[Bug 336466] oom crash [@ CERT_DecodeAuthKeyID]. r=nelson
This commit is contained in:
alexei.volkov.bugs%sun.com 2006-05-13 00:33:09 +00:00
Родитель 7d8f58e700
Коммит 729d4b4079
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -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);