зеркало из https://github.com/mozilla/gecko-dev.git
Fix bug 75490: memory bug in decodeAndImportKey causes SEGV.
This commit is contained in:
Родитель
94755d42a1
Коммит
ea774ba8fe
|
@ -807,15 +807,13 @@ decodeAndImportKey(SECItem *dervalue,
|
||||||
return OUT_OF_MEM;
|
return OUT_OF_MEM;
|
||||||
}
|
}
|
||||||
|
|
||||||
pki = (SECKEYPrivateKeyInfo *)
|
pki = PR_NEWZAP(SECKEYPrivateKeyInfo);
|
||||||
PORT_ArenaZAlloc(temparena, sizeof(SECKEYPrivateKeyInfo));
|
|
||||||
if(pki == NULL) {
|
if(pki == NULL) {
|
||||||
result = DECODE_FAILURE;
|
result = DECODE_FAILURE;
|
||||||
goto loser;
|
goto loser;
|
||||||
}
|
}
|
||||||
|
|
||||||
pk = (SECKEYLowPrivateKey *)
|
pk = PR_NEWZAP(SECKEYLowPrivateKey);
|
||||||
PORT_ArenaZAlloc(temparena, sizeof(SECKEYLowPrivateKey));
|
|
||||||
if(pk == NULL) {
|
if(pk == NULL) {
|
||||||
result = DECODE_FAILURE;
|
result = DECODE_FAILURE;
|
||||||
goto loser;
|
goto loser;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче