aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorXiyue Deng2013-04-23 18:02:45 -0700
committerJack Nagel2013-04-24 10:10:00 -0500
commitd90cbb39698867dc1e232a0f67f53f087f6cd395 (patch)
tree00ec79db18cb0c8680904dd7d2be245e3283972d /Library/Formula
parent0bf666f4656633b833b88048f00b3444d4332b10 (diff)
downloadhomebrew-d90cbb39698867dc1e232a0f67f53f087f6cd395.tar.bz2
p11-kit: fix uninitialized p11_library_once
New patch applied to solve all undefined behavior. Closes #19391. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/p11-kit.rb18
1 files changed, 9 insertions, 9 deletions
diff --git a/Library/Formula/p11-kit.rb b/Library/Formula/p11-kit.rb
index 4c1844dd7..2117b398b 100644
--- a/Library/Formula/p11-kit.rb
+++ b/Library/Formula/p11-kit.rb
@@ -69,14 +69,14 @@ index b3c7610..6614ae5 100644
cat >>confdefs.h <<_ACEOF
#define SHLEXT "$SHLEXT"
---- p11-kit-0.18.1.orig/common/library.c 2013-04-03 08:30:32.000000000 -0700
-+++ p11-kit-0.18.1/common/library.c 2013-04-18 21:26:47.000000000 -0700
-@@ -125,7 +125,7 @@
- uninit_common ();
+--- p11-kit-0.18.1/common/library.c 2013-04-03 08:30:32.000000000 -0700
++++ p11-kit-0.18.1.new/common/library.c 2013-04-23 17:54:08.000000000 -0700
+@@ -60,7 +60,7 @@
+ p11_mutex_t p11_library_mutex;
- /* Some cleanup to pacify valgrind */
-- free (pthread_getspecific (thread_local));
-+ /*free (pthread_getspecific (thread_local));*/
- pthread_setspecific (thread_local, NULL);
+ #ifdef OS_UNIX
+-pthread_once_t p11_library_once;
++pthread_once_t p11_library_once = PTHREAD_ONCE_INIT;
+ #endif
- p11_message_storage = dont_store_message;
+ static char *