bind9/lib/isc
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
..
include Use library constructor/destructor to initialize OpenSSL 2021-02-26 17:18:06 +01:00
netmgr Use library constructor/destructor to initialize OpenSSL 2021-02-26 17:18:06 +01:00
pthreads Only pick CPUs that are part of the existing CPU affinity set when 2020-12-23 09:21:29 +11:00
tests Use library constructor/destructor to initialize OpenSSL 2021-02-26 17:18:06 +01:00
unix Reformat sources using clang-format-11 2020-12-08 19:34:05 +01:00
win32 Disable safe-guard assertion in DLL_THREAD_ATTACH/DLL_THREAD_DETACH 2021-02-26 17:18:06 +01:00
.gitignore [master] update gitignore files; use rev-parse to get srcid 2014-06-17 13:49:30 -07:00
aes.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
app.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
assertions.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
astack.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
backtrace-emptytbl.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
backtrace.c Fix getrbp() 2020-10-30 09:12:50 +01:00
base32.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
base64.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
bind9.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
buffer.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
bufferlist.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
commandline.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
counter.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
crc64.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
entropy.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
entropy_private.h update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
error.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
event.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
fsaccess.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
hash.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
heap.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
hex.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
hmac.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
hp.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
ht.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
httpd.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
iterated_hash.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
Kyuafile regen master 2017-12-29 01:44:18 +00:00
lex.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
lfsr.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
lib.c Use library constructor/destructor to initialize OpenSSL 2021-02-26 17:18:06 +01:00
log.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
Makefile.in Refactor TLSDNS module to work with libuv/ssl directly 2021-02-26 16:14:50 +01:00
md.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
mem.c Use library constructor/destructor to initialize OpenSSL 2021-02-26 17:18:06 +01:00
mem_p.h Use library constructor/destructor to initialize OpenSSL 2021-02-26 17:18:06 +01:00
mutexblock.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
netaddr.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
netscope.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
nonce.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
openssl_shim.c Refactor TLSDNS module to work with libuv/ssl directly 2021-02-26 16:14:50 +01:00
openssl_shim.h Refactor TLSDNS module to work with libuv/ssl directly 2021-02-26 16:14:50 +01:00
parseint.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
pk11.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
pk11_result.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
pool.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
portset.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
queue.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
quota.c Refactor netmgr and add more unit tests 2020-12-09 10:46:16 +01:00
radix.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
random.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
ratelimiter.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
regex.c Reformat sources using clang-format-11 2020-12-08 19:34:05 +01:00
region.c Reformat sources using clang-format-11 2020-12-08 19:34:05 +01:00
result.c netmgr: server-side TLS support 2020-12-09 10:46:16 +01:00
rwlock.c Cleanup redundant isc_rwlock_init() result checks 2021-02-08 15:13:49 +11:00
safe.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
serial.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
siphash.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
sockaddr.c netmgr: server-side TLS support 2020-12-09 10:46:16 +01:00
stats.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
string.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
symtab.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
task.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
task_p.h update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
taskpool.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
timer.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
timer_p.h update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
tls.c Use library constructor/destructor to initialize OpenSSL 2021-02-26 17:18:06 +01:00
tls_p.h Use library constructor/destructor to initialize OpenSSL 2021-02-26 17:18:06 +01:00
tm.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
utf8.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
version.c Use -release instead of -version-info for internal library SONAMEs 2021-01-25 15:28:09 +01:00
xoshiro128starstar.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00