bind9/tests
Ondřej Surý d76ab69772 Attach to the dns_dispatchmgr in the dns_view object
The dns_dispatchmgr object was only set in the dns_view object making it
prone to use-after-free in the dns_xfrin unit when shutting down named.

Remove dns_view_setdispatchmgr() and optionally pass the dispatchmgr
directly to dns_view_create() when it is attached and not just assigned,
so the dns_dispatchmgr doesn't cease to exist too early.

The dns_view_getdnsdispatchmgr() is now protected by the RCU lock, the
dispatchmgr reference is incremented, so the caller needs to detach from
it, and the function can return NULL in case the dns_view has been
already shut down.
2023-08-15 10:25:37 -07:00
..
bench Improve qp-trie leaf return values 2023-08-15 14:24:39 +02:00
dns Attach to the dns_dispatchmgr in the dns_view object 2023-08-15 10:25:37 -07:00
include/tests Attach to the dns_dispatchmgr in the dns_view object 2023-08-15 10:25:37 -07:00
irs Include <inttypes.h> whenever including <cmocka.h> 2023-05-18 15:12:23 +02:00
isc Add rwlock unit test 2023-07-31 18:07:56 +02:00
isccfg Include <inttypes.h> whenever including <cmocka.h> 2023-05-18 15:12:23 +02:00
libtest Attach to the dns_dispatchmgr in the dns_view object 2023-08-15 10:25:37 -07:00
ns Attach to the dns_dispatchmgr in the dns_view object 2023-08-15 10:25:37 -07:00
.gitignore Move all the unit tests to /tests/<libname>/ 2022-05-28 14:53:02 -07:00
Makefile.am Build libtest even if CMOCKA is not available 2023-03-29 02:29:18 +00:00
unit-test-driver.sh.in Use SIGABRT rather than SIGKILL for long running unit test 2023-04-14 15:40:02 +10:00