ALT Linux Bugzilla
– Attachment 5455 Details for
Bug 27300
Additional Fedora patch required
New bug
|
Search
|
[?]
|
Help
Register
|
Log In
[x]
|
Forgot Password
Login:
[x]
|
EN
|
RU
[patch]
Fedora's patch
bz784672-protect-against-calls-before-nss_init.patch (text/plain), 1.37 KB, created by
Vitaly Kuznetsov
on 2012-05-05 12:26:17 MSK
(
hide
)
Description:
Fedora's patch
Filename:
MIME Type:
Creator:
Vitaly Kuznetsov
Created:
2012-05-05 12:26:17 MSK
Size:
1.37 KB
patch
obsolete
>diff -up mozilla/security/nss/lib/nss/nssinit.c.784672 mozilla/security/nss/lib/nss/nssinit.c >--- mozilla/security/nss/lib/nss/nssinit.c.784672 2012-01-26 14:43:46.232357231 -0800 >+++ mozilla/security/nss/lib/nss/nssinit.c 2012-01-26 14:50:55.830512565 -0800 >@@ -944,6 +944,12 @@ NSS_RegisterShutdown(NSS_ShutdownFunc sF > { > int i; > >+ /* make sure our lock and condition variable are initialized one and only >+ * one time */ >+ if (PR_CallOnce(&nssInitOnce, nss_doLockInit) != PR_SUCCESS) { >+ return SECFailure; >+ } >+ > PZ_Lock(nssInitLock); > if (!NSS_IsInitialized()) { > PZ_Unlock(nssInitLock); >@@ -1002,6 +1008,11 @@ NSS_UnregisterShutdown(NSS_ShutdownFunc > { > int i; > >+ /* make sure our lock and condition variable are initialized one and only >+ * one time */ >+ if (PR_CallOnce(&nssInitOnce, nss_doLockInit) != PR_SUCCESS) { >+ return SECFailure; >+ } > PZ_Lock(nssInitLock); > if (!NSS_IsInitialized()) { > PZ_Unlock(nssInitLock); >@@ -1192,6 +1203,11 @@ NSS_ShutdownContext(NSSInitContext *cont > { > SECStatus rv = SECSuccess; > >+ /* make sure our lock and condition variable are initialized one and only >+ * one time */ >+ if (PR_CallOnce(&nssInitOnce, nss_doLockInit) != PR_SUCCESS) { >+ return SECFailure; >+ } > PZ_Lock(nssInitLock); > /* If one or more threads are in the middle of init, wait for them > * to complete */
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 27300
: 5455