зеркало из https://github.com/mozilla/gecko-dev.git
[Bug 337009] OOM crash [@ nssList_Count - nssTrustDomain_GetCertsFromCache] Dereferencing possibly NULL "certList". r=nelson
This commit is contained in:
Родитель
884d2260fa
Коммит
e1b759198c
|
@ -35,7 +35,7 @@
|
||||||
* ***** END LICENSE BLOCK ***** */
|
* ***** END LICENSE BLOCK ***** */
|
||||||
|
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
static const char CVS_ID[] = "@(#) $RCSfile: tdcache.c,v $ $Revision: 1.42 $ $Date: 2005/06/27 21:50:06 $";
|
static const char CVS_ID[] = "@(#) $RCSfile: tdcache.c,v $ $Revision: 1.43 $ $Date: 2006/05/17 20:38:59 $";
|
||||||
#endif /* DEBUG */
|
#endif /* DEBUG */
|
||||||
|
|
||||||
#ifndef PKIM_H
|
#ifndef PKIM_H
|
||||||
|
@ -1150,6 +1150,9 @@ nssTrustDomain_GetCertsFromCache (
|
||||||
certList = certListOpt;
|
certList = certListOpt;
|
||||||
} else {
|
} else {
|
||||||
certList = nssList_Create(NULL, PR_FALSE);
|
certList = nssList_Create(NULL, PR_FALSE);
|
||||||
|
if (!certList) {
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
PZ_Lock(td->cache->lock);
|
PZ_Lock(td->cache->lock);
|
||||||
nssHash_Iterate(td->cache->issuerAndSN, cert_iter, (void *)certList);
|
nssHash_Iterate(td->cache->issuerAndSN, cert_iter, (void *)certList);
|
||||||
|
|
Загрузка…
Ссылка в новой задаче