bind9/lib/isc/win32
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 Add helper function to enable DF (don't fragment) flag on UDP sockets 2020-10-05 16:19:23 +02:00
.dir-locals.el Add emacs .dir-locals.el settings for flycheck mode 2018-12-19 17:03:37 +01:00
condition.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
dir.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
DLLMain.c Disable safe-guard assertion in DLL_THREAD_ATTACH/DLL_THREAD_DETACH 2021-02-26 17:18:06 +01:00
errno.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
errno2result.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
errno2result.h update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
file.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
interfaceiter.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
ipv6.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
libgen.h update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
libisc.def.exclude Remove unused obsolete isc_hash_* function, and just keep the FNV-1a version 2018-04-04 23:12:14 +02:00
libisc.def.in Use library constructor/destructor to initialize OpenSSL 2021-02-26 17:18:06 +01:00
libisc.vcxproj.filters.in Refactor TLSDNS module to work with libuv/ssl directly 2021-02-26 16:14:50 +01:00
libisc.vcxproj.in Refactor TLSDNS module to work with libuv/ssl directly 2021-02-26 16:14:50 +01:00
libisc.vcxproj.user Convert *.vcxproj.user to CRLF line endings 2019-03-08 18:01:48 +01:00
Makefile.in Make OpenSSL mandatory 2018-07-19 12:47:03 -04:00
meminfo.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
net.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
netdb.h update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
ntgroups.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
ntpaths.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
once.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
os.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
pk11_api.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
resource.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
socket.c Reformat sources using clang-format-11 2020-12-08 19:34:05 +01:00
stdio.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
stdtime.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
syslog.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
syslog.h update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
thread.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
time.c Add ISO time stamps to the microsecond 2020-10-01 00:14:45 +10:00
unistd.h 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
win32os.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00