bind9/lib
Ondřej Surý 2011efa99d Disable safe-guard assertion in DLL_THREAD_ATTACH/DLL_THREAD_DETACH
The BIND 9 libraries on Windows define DllMain() optional entry point
into a dynamic-link library (DLL).  When the system starts or terminates
a process or thread, it calls the entry-point function for each loaded
DLL using the first thread of the process.

When the DLL is being loaded into the virtual address space of the
current process as a result of the process starting up, we make a call
to DisableThreadLibraryCalls() which should disable the
DLL_THREAD_ATTACH and DLL_THREAD_DETACH notifications for the specified
dynamic-link library (DLL).

This seems not be the case because we never check the return value of
the DisableThreadLibraryCalls() call, and it could in fact fail.  The
DisableThreadLibraryCalls() function fails if the DLL specified by
hModule has active static thread local storage, or if hModule is an
invalid module handle.

In this commit, we remove the safe-guard assertion put in place for the
DLL_THREAD_ATTACH and DLL_THREAD_DETACH events and we just ignore them.
BIND 9 doesn't create/destroy enough threads for it actually to make any
difference, and in fact we do use static thread local storage in the
code.
2021-02-26 17:18:06 +01:00
..
bind9 Stop including dnstap headers from <dns/dnstap.h> 2021-02-16 12:08:21 +11:00
dns Use library constructor/destructor to initialize OpenSSL 2021-02-26 17:18:06 +01:00
irs Use BIND 9.17 preprocessor macro to skip unit test 2021-02-17 12:09:25 +01:00
isc Disable safe-guard assertion in DLL_THREAD_ATTACH/DLL_THREAD_DETACH 2021-02-26 17:18:06 +01:00
isccc Use BIND 9.17 preprocessor macro to skip unit test 2021-02-17 12:09:25 +01:00
isccfg Add purge-keys config option 2021-02-23 09:18:55 +01:00
ns Refactor TLSDNS module to work with libuv/ssl directly 2021-02-26 16:14:50 +01:00
samples Add libssl libraries to Windows build 2020-12-09 10:46:16 +01:00
win32/bindevt update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
.gitignore added gitignore, removed cvsignore 2012-03-03 23:10:05 -08:00
Kyuafile link in lib/isccc/tests/Kyuafile 2018-11-13 07:23:36 +11:00
Makefile.in remove lib/tests as nothing uses it anymore 2018-03-09 14:12:50 -08:00