bind9/bin
Mark Andrews 0a966315b2 Fix wrong length passed to isc_mem_put
If an invalid key name (e.g. "a..b") in a primaries list in named.conf
is specified the wrong size is passed to isc_mem_put resulting in the
returned memory being put on the wrong freed list.

    *** CID 316784:  Incorrect expression  (SIZEOF_MISMATCH)
    /bin/named/config.c: 636 in named_config_getname()
    630     	isc_buffer_constinit(&b, objstr, strlen(objstr));
    631     	isc_buffer_add(&b, strlen(objstr));
    632     	dns_fixedname_init(&fname);
    633     	result = dns_name_fromtext(dns_fixedname_name(&fname), &b, dns_rootname,
    634     				   0, NULL);
    635     	if (result != ISC_R_SUCCESS) {
       CID 316784:  Incorrect expression  (SIZEOF_MISMATCH)
       Passing argument "*namep" of type "dns_name_t *" and argument "8UL /* sizeof (*namep) */" to function "isc__mem_put" is suspicious.
    636     		isc_mem_put(mctx, *namep, sizeof(*namep));
    637     		*namep = NULL;
    638     		return (result);
    639     	}
    640     	dns_name_dup(dns_fixedname_name(&fname), mctx, *namep);
    641
2021-02-09 12:30:14 +00:00
..
check Add libssl libraries to Windows build 2020-11-09 16:00:28 +01:00
confgen Address a Sphinx duplicate label warning 2021-02-03 11:44:02 +01:00
delv Reformat sources using clang-format-11 2020-12-08 18:36:23 +01:00
dig Report unknown dash option during the pre-parse phase 2021-01-26 13:26:10 +01:00
dnssec Cleanup redundant isc_rwlock_init() result checks 2021-02-03 12:22:33 +11:00
named Fix wrong length passed to isc_mem_put 2021-02-09 12:30:14 +00:00
nsupdate Add libssl libraries to Windows build 2020-11-09 16:00:28 +01:00
pkcs11 Add libssl libraries to Windows build 2020-11-09 16:00:28 +01:00
plugins Use libuv's shared library handling capabilities 2020-10-28 15:48:58 +01:00
rndc Drop unused headers 2020-11-11 10:08:12 +01:00
tests Refactor ecdsa system test 2021-02-09 11:59:08 +00:00
tools Handle shared library platforms that don't support inter library dependancies 2020-12-21 01:09:45 +00:00
win32/BINDInstall nghttp2-based HTTP layer in netmgr 2021-02-03 12:06:17 +01:00
Makefile.am Complete rewrite the BIND 9 build system 2020-04-21 14:19:48 +02:00