The Samba-Bugzilla – Attachment 18079 Details for
Bug 15464
libnss_winbind causes memory corruption since samba-4.18, impacts sendmail, zabbix, potentially more
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Minimalist patch for samba-4.18 to work around the bug
workaround-b15464-libnss_winbind-memory-corruption.patch (text/plain), 834 bytes, created by
Krzysztof Olędzki
on 2023-09-05 23:19:31 UTC
(
hide
)
Description:
Minimalist patch for samba-4.18 to work around the bug
Filename:
MIME Type:
Creator:
Krzysztof Olędzki
Created:
2023-09-05 23:19:31 UTC
Size:
834 bytes
patch
obsolete
>diff -Nur 1/nsswitch/wb_common.c 2/nsswitch/wb_common.c >--- 1/nsswitch/wb_common.c 2023-09-02 13:38:34.506064173 -0700 >+++ 2/nsswitch/wb_common.c 2023-09-05 14:29:33.401277456 -0700 >@@ -32,6 +32,9 @@ > #include <pthread.h> > #endif > >+/* workaround for https://bugzilla.samba.org/show_bug.cgi?id=15464 */ >+#undef HAVE_PTHREAD >+ > static __thread char client_name[32]; > > /* Global context */ >@@ -104,7 +107,6 @@ > wb_thread_ctx_destructor); > assert(ret == 0); > } >-#endif > > static struct winbindd_context *get_wb_thread_ctx(void) > { >@@ -139,6 +141,7 @@ > } > return ctx; > } >+#endif > > static struct winbindd_context *get_wb_global_ctx(void) > { >@@ -246,7 +249,7 @@ > return; > } > >-#ifdef HAVE_PTHREAD_H >+#ifdef HAVE_PTHREAD > ctx = (struct winbindd_context *)pthread_getspecific(wb_global_ctx.key); > if (ctx == NULL) { > return;
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 Raw
Flags:
metze
:
review-
Actions:
View
Attachments on
bug 15464
:
18079
|
18080
|
18081
|
18082
|
18103
|
18104