зеркало из https://github.com/mozilla/gecko-dev.git
[Bug 337014] OOM crash [@ PORT_ArenaAlloc - PK11_PQG_ParamGenSeedLen][@ PORT_ArenaAlloc - PK11_PQG_ParamGenSeedLen] Dereferencing possibly NULL "varena". r=nelson
This commit is contained in:
Родитель
c0140ec246
Коммит
47817668ff
|
@ -119,6 +119,10 @@ PK11_PQG_ParamGenSeedLen( unsigned int j, unsigned int seedBytes,
|
|||
}
|
||||
|
||||
parena = PORT_NewArena(60);
|
||||
if (!parena) {
|
||||
goto loser;
|
||||
}
|
||||
|
||||
crv = PK11_GetAttributes(parena, slot, objectID, pTemplate, pTemplateCount);
|
||||
if (crv != CKR_OK) {
|
||||
PORT_SetError( PK11_MapError(crv) );
|
||||
|
@ -145,6 +149,10 @@ PK11_PQG_ParamGenSeedLen( unsigned int j, unsigned int seedBytes,
|
|||
|
||||
|
||||
varena = PORT_NewArena(60);
|
||||
if (!varena) {
|
||||
goto loser;
|
||||
}
|
||||
|
||||
crv = PK11_GetAttributes(varena, slot, objectID, vTemplate, vTemplateCount);
|
||||
if (crv != CKR_OK) {
|
||||
PORT_SetError( PK11_MapError(crv) );
|
||||
|
|
Загрузка…
Ссылка в новой задаче