]> git.ipfire.org Git - thirdparty/bind9.git/log
thirdparty/bind9.git
8 years agoChange isc_random() to be just PRNG, and add isc_nonce_buf() that uses CSPRNG
Ondřej Surý [Mon, 28 May 2018 13:22:23 +0000 (15:22 +0200)] 
Change isc_random() to be just PRNG, and add isc_nonce_buf() that uses CSPRNG

This commit reverts the previous change to use system provided
entropy, as (SYS_)getrandom is very slow on Linux because it is
a syscall.

The change introduced in this commit adds a new call isc_nonce_buf
that uses CSPRNG from cryptographic library provider to generate
secure data that can be and must be used for generating nonces.
Example usage would be DNS cookies.

The isc_random() API has been changed to use fast PRNG that is not
cryptographically secure, but runs entirely in user space.  Two
contestants have been considered xoroshiro family of the functions
by Villa&Blackman and PCG by O'Neill.  After a consideration the
xoshiro128starstar function has been used as uint32_t random number
provider because it is very fast and has good enough properties
for our usage pattern.

The other change introduced in the commit is the more extensive usage
of isc_random_uniform in places where the usage pattern was
isc_random() % n to prevent modulo bias.  For usage patterns where
only 16 or 8 bits are needed (DNS Message ID), the isc_random()
functions has been renamed to isc_random32(), and isc_random16() and
isc_random8() functions have been introduced by &-ing the
isc_random32() output with 0xffff and 0xff.  Please note that the
functions that uses stripped down bit count doesn't pass our
NIST SP 800-22 based random test.

8 years agoMerge branch '286-new-cppcheck-detected-errors' into 'master'
Mark Andrews [Mon, 28 May 2018 23:40:53 +0000 (19:40 -0400)] 
Merge branch '286-new-cppcheck-detected-errors' into 'master'

Resolve "New cppcheck-detected errors"

See merge request isc-projects/bind9!324

8 years agoadd CHANGES note
Mark Andrews [Mon, 28 May 2018 23:25:50 +0000 (09:25 +1000)] 
add CHANGES note

8 years agowork around cppcheck false positive
Mark Andrews [Mon, 28 May 2018 07:26:39 +0000 (17:26 +1000)] 
work around cppcheck false positive

8 years agoMerge branch '293-cleanup-radix' into 'master'
Evan Hunt [Mon, 28 May 2018 23:07:20 +0000 (19:07 -0400)] 
Merge branch '293-cleanup-radix' into 'master'

Resolve "Follow-up from "Remove ECS authoritative implementation from BIND""

Closes #293

See merge request isc-projects/bind9!322

8 years agoimprove readability of radix code
Evan Hunt [Fri, 25 May 2018 20:25:54 +0000 (13:25 -0700)] 
improve readability of radix code

- use RADIX_V4 and RADIX_V6 instead of 0 and 1 as array indices
- remove some unused macros

8 years agoMerge branch 'serve-stale-doc-and-logging' into 'master'
Evan Hunt [Mon, 28 May 2018 22:38:49 +0000 (18:38 -0400)] 
Merge branch 'serve-stale-doc-and-logging' into 'master'

Serve stale doc and logging

See merge request isc-projects/bind9!323

8 years agoCHANGES
Evan Hunt [Sat, 26 May 2018 05:10:24 +0000 (22:10 -0700)] 
CHANGES

8 years agoMove serve-stale logging to its own category, so that its verbosity can be curtailed.
Tony Finch [Tue, 10 Apr 2018 15:17:57 +0000 (16:17 +0100)] 
Move serve-stale logging to its own category, so that its verbosity can be curtailed.

8 years agoclarify serve-stale documentation, and add a floor for max-stale-ttl
Evan Hunt [Sat, 26 May 2018 05:00:37 +0000 (22:00 -0700)] 
clarify serve-stale documentation, and add a floor for max-stale-ttl

- added a 1-second floor to max-stale-ttl similar to stale-answer-ttl;
  if set to 0, it will be silently updated to 1.
- fixed the ARM entry on max-stale-ttl, which incorrectly suggested that
  the default was 0 instead of 1 week.
- clarified rndc serve-stale documentation.

8 years agoMerge branch '245-fix-test-color' into 'master'
Evan Hunt [Fri, 25 May 2018 19:58:32 +0000 (15:58 -0400)] 
Merge branch '245-fix-test-color' into 'master'

Resolve "rpz test fails to launch ns2 on openbsd"

Closes #245

See merge request isc-projects/bind9!321

8 years agofix openbsd color-display problem in system test output
Evan Hunt [Fri, 25 May 2018 19:47:02 +0000 (12:47 -0700)] 
fix openbsd color-display problem in system test output

8 years agoMerge branch '184-lock-bucket-mapping-is-broken-in-rbtdb-c-when-dns_rbt_usehash-is...
Evan Hunt [Fri, 25 May 2018 16:29:56 +0000 (12:29 -0400)] 
Merge branch '184-lock-bucket-mapping-is-broken-in-rbtdb-c-when-dns_rbt_usehash-is-not-defined' into 'master'

Resolve "Lock bucket mapping is broken in rbtdb.c when DNS_RBT_USEHASH is not defined"

Closes #184

See merge request isc-projects/bind9!159

8 years agoCHANGES
Evan Hunt [Fri, 25 May 2018 16:04:59 +0000 (09:04 -0700)] 
CHANGES

8 years agoremove #ifndef DNS_RBT_USEHASH from rbtdb.c
Evan Hunt [Fri, 20 Apr 2018 21:37:31 +0000 (14:37 -0700)] 
remove #ifndef DNS_RBT_USEHASH from rbtdb.c

- this was a compile time option to disable the use of a hash table in
  the RBTDB. the code path without the hash table was buggy and
  untested, and unlikely to be needed by anyone anyway.

8 years agoMerge branch '32-remove-ecs-auth' into 'master'
Evan Hunt [Fri, 25 May 2018 15:31:11 +0000 (11:31 -0400)] 
Merge branch '32-remove-ecs-auth' into 'master'

Resolve "Remove ECS authoritative implementation from BIND"

Closes #32

See merge request isc-projects/bind9!219

8 years agoCHANGES, release note
Evan Hunt [Fri, 25 May 2018 05:15:46 +0000 (22:15 -0700)] 
CHANGES, release note

8 years agocopyrights
Evan Hunt [Fri, 25 May 2018 05:15:39 +0000 (22:15 -0700)] 
copyrights

8 years agoremove the experimental authoritative ECS support from named
Evan Hunt [Fri, 27 Apr 2018 03:57:41 +0000 (20:57 -0700)] 
remove the experimental authoritative ECS support from named

- mark the 'geoip-use-ecs' option obsolete; warn when it is used
  in named.conf
- prohibit 'ecs' ACL tags in named.conf; note that this is a fatal error
  since simply ignoring the tags could make ACLs behave unpredictably
- re-simplify the radix and iptable code
- clean up dns_acl_match(), dns_aclelement_match(), dns_acl_allowed()
  and dns_geoip_match() so they no longer take ecs options
- remove the ECS-specific unit and system test cases
- remove references to ECS from the ARM

8 years agoMerge branch '290-documentation-error-missing' into 'master'
Mark Andrews [Fri, 25 May 2018 03:09:03 +0000 (23:09 -0400)] 
Merge branch '290-documentation-error-missing' into 'master'

Resolve "Documentation error - missing "};""

Closes #290

See merge request isc-projects/bind9!318

8 years agoadd closing '};'
Mark Andrews [Fri, 25 May 2018 02:48:55 +0000 (12:48 +1000)] 
add closing '};'

8 years agoMerge branch 'fix-catz-test' into 'master'
Evan Hunt [Thu, 24 May 2018 23:12:51 +0000 (19:12 -0400)] 
Merge branch 'fix-catz-test' into 'master'

fix catz test

See merge request isc-projects/bind9!317

8 years agofiles were left in place after catz run because of non-portable bracket use
Evan Hunt [Thu, 24 May 2018 21:43:03 +0000 (14:43 -0700)] 
files were left in place after catz run because of non-portable bracket use

8 years agoMerge branch 'add-readme-features' into 'master'
Evan Hunt [Thu, 24 May 2018 18:35:22 +0000 (14:35 -0400)] 
Merge branch 'add-readme-features' into 'master'

add new feature list to README

See merge request isc-projects/bind9!316

8 years agoadd new feature list to README
Evan Hunt [Thu, 24 May 2018 18:26:12 +0000 (11:26 -0700)] 
add new feature list to README

8 years agoMerge branch '283-ensure-there-is-a-blank-line-before-a-changes-entry-and-a-release...
Evan Hunt [Thu, 24 May 2018 00:55:12 +0000 (20:55 -0400)] 
Merge branch '283-ensure-there-is-a-blank-line-before-a-changes-entry-and-a-release-marker' into 'master'

Resolve "ensure there is a blank line before a changes entry and a release marker."

Closes #283

See merge request isc-projects/bind9!311

8 years agoadd blank line
Mark Andrews [Wed, 23 May 2018 04:32:37 +0000 (14:32 +1000)] 
add blank line

8 years agoensure there is a blank line before a changes entry and a release marker
Mark Andrews [Wed, 23 May 2018 04:31:15 +0000 (14:31 +1000)] 
ensure there is a blank line before a changes entry and a release marker

8 years agoMerge branch 'generate-notes-txt' into 'master'
Evan Hunt [Wed, 23 May 2018 16:48:42 +0000 (12:48 -0400)] 
Merge branch 'generate-notes-txt' into 'master'

use w3m to generate notes.txt as part of the doc build

See merge request isc-projects/bind9!310

8 years agocopyrights
Evan Hunt [Wed, 23 May 2018 01:41:23 +0000 (18:41 -0700)] 
copyrights

8 years agouse w3m to generate notes.txt as part of the doc build
Evan Hunt [Wed, 23 May 2018 00:29:44 +0000 (17:29 -0700)] 
use w3m to generate notes.txt as part of the doc build

8 years agoMerge branch '273-add-home-arpa-to-list-of-empty-zones-rfc-8375' into 'master'
Mark Andrews [Wed, 23 May 2018 00:57:19 +0000 (20:57 -0400)] 
Merge branch '273-add-home-arpa-to-list-of-empty-zones-rfc-8375' into 'master'

Resolve "Add "HOME.ARPA" to list of empty zones (RFC 8375)"

Closes #273

See merge request isc-projects/bind9!297

8 years agoadd HOME.ARPA to the list of empty zones
Mark Andrews [Fri, 18 May 2018 01:13:39 +0000 (11:13 +1000)] 
add HOME.ARPA to the list of empty zones

8 years agofix handling of failed tests
Mark Andrews [Fri, 18 May 2018 01:13:39 +0000 (11:13 +1000)] 
fix handling of failed tests

8 years agoMerge branch '272-missing-crypto-defines-in-windows-build' into 'master' v9.13.0
Evan Hunt [Tue, 22 May 2018 23:42:35 +0000 (19:42 -0400)] 
Merge branch '272-missing-crypto-defines-in-windows-build' into 'master'

Closes #272

See merge request isc-projects/bind9!308

8 years agofix broken win32 code in random.c
Evan Hunt [Tue, 22 May 2018 16:22:51 +0000 (09:22 -0700)] 
fix broken win32 code in random.c

8 years agoaddress win32 build issues
Ondřej Surý [Tue, 22 May 2018 13:24:37 +0000 (15:24 +0200)] 
address win32 build issues

- Replace external -DOPENSSL/-DPKCS11CRYPTO with properly AC_DEFINEd
  HAVE_OPENSSL/HAVE_PKCS11
- Don't enforce the crypto provider from platform.h, just from dst_api.c
  and configure scripts

8 years agoMerge branch '278-prevent-false-negatives-in-rootkeysentinel-system-test' into 'master'
Ondřej Surý [Tue, 22 May 2018 11:59:42 +0000 (07:59 -0400)] 
Merge branch '278-prevent-false-negatives-in-rootkeysentinel-system-test' into 'master'

Prevent false negatives in rootkeysentinel system test

Closes #278

See merge request isc-projects/bind9!301

8 years agoFix the name of the variable used in some bad TA checks
Michał Kępień [Mon, 21 May 2018 07:04:59 +0000 (09:04 +0200)] 
Fix the name of the variable used in some bad TA checks

8 years agoPrevent false negatives in rootkeysentinel system test
Michał Kępień [Mon, 21 May 2018 06:00:44 +0000 (08:00 +0200)] 
Prevent false negatives in rootkeysentinel system test

8 years agoMerge branch '280-remove-fatal-prefix' into 'master'
Ondřej Surý [Tue, 22 May 2018 11:02:17 +0000 (07:02 -0400)] 
Merge branch '280-remove-fatal-prefix' into 'master'

Remove "FATAL:" prefix and the newline from FATAL_ERROR call

See merge request isc-projects/bind9!307

8 years agoRemove extra FATAL prefix from FATAL_ERROR call
Ondřej Surý [Tue, 22 May 2018 10:31:27 +0000 (12:31 +0200)] 
Remove extra FATAL prefix from FATAL_ERROR call

8 years agoMerge branch '280-provide-diagnostic-on-failed-RAND_bytes' into 'master'
Ondřej Surý [Tue, 22 May 2018 10:27:05 +0000 (06:27 -0400)] 
Merge branch '280-provide-diagnostic-on-failed-RAND_bytes' into 'master'

Provide more diagnostic output on failed RAND_bytes() call

See merge request isc-projects/bind9!306

8 years agoProvide better error message on failed RAND_bytes call
Ondřej Surý [Tue, 22 May 2018 10:00:00 +0000 (12:00 +0200)] 
Provide better error message on failed RAND_bytes call

8 years agoMerge branch 'fix-kit' into 'master'
Evan Hunt [Mon, 21 May 2018 20:55:27 +0000 (16:55 -0400)] 
Merge branch 'fix-kit' into 'master'

use the correct repository, and get archive by tag not hash

See merge request isc-projects/bind9!304

8 years agouse the correct repository, and get archive by tag not hash
Evan Hunt [Mon, 21 May 2018 20:43:49 +0000 (13:43 -0700)] 
use the correct repository, and get archive by tag not hash

8 years agoMerge branch 'prep-913' into 'master'
Evan Hunt [Mon, 21 May 2018 20:12:19 +0000 (16:12 -0400)] 
Merge branch 'prep-913' into 'master'

prepare development release 9.13.0

See merge request isc-projects/bind9!296

8 years agoregenerate doc
Tinderbox User [Mon, 21 May 2018 19:59:10 +0000 (19:59 +0000)] 
regenerate doc

8 years agobegin preparation for 9.13.0
Evan Hunt [Thu, 17 May 2018 21:55:10 +0000 (14:55 -0700)] 
begin preparation for 9.13.0

- tidy up release notes, removing the existing "security fixes" and
  "bug fixes" sections
- add a section in the release notes to discuss the new version
  numbering
- update version, CHANGES, api, and mapapi files

8 years agoMerge branch '185-fix-changes-entry' into 'master'
Mukund Sivaraman [Mon, 21 May 2018 17:31:41 +0000 (13:31 -0400)] 
Merge branch '185-fix-changes-entry' into 'master'

Resolve "[CVE-2018-5737] serve-stale crash"

Closes #185

See merge request isc-projects/bind9!303

8 years agoFix CHANGES entry
Mukund Sivaraman [Mon, 21 May 2018 17:22:15 +0000 (22:52 +0530)] 
Fix CHANGES entry

8 years agoMerge branch '185-public-fix' into 'master'
Evan Hunt [Mon, 21 May 2018 17:02:30 +0000 (13:02 -0400)] 
Merge branch '185-public-fix' into 'master'

Resolve "[CVE-2018-5737] serve-stale crash"

Closes #185

See merge request isc-projects/bind9!302

8 years agoupdate CHANGES
Evan Hunt [Mon, 21 May 2018 16:51:20 +0000 (09:51 -0700)] 
update CHANGES

8 years agoDetect recursion loops during query processing
Michał Kępień [Fri, 27 Apr 2018 07:13:26 +0000 (09:13 +0200)] 
Detect recursion loops during query processing

Interrupt query processing when query_recurse() attempts to ask the same
name servers for the same QNAME/QTYPE tuple for two times in a row as
this indicates that query processing may be stuck for an indeterminate
period of time, e.g. due to interactions between features able to
restart query_lookup().

8 years agoPrevent check_stale_header() from leaking rdataset headers
Michał Kępień [Fri, 27 Apr 2018 07:13:26 +0000 (09:13 +0200)] 
Prevent check_stale_header() from leaking rdataset headers

check_stale_header() fails to update the pointer to the previous header
while processing rdataset headers eligible for serve-stale, thus
enabling rdataset headers to be leaked (i.e. disassociated from a node
and left on the relevant TTL heap) while iterating through a node.  This
can lead to several different assertion failures.  Add the missing
pointer update.

8 years agoMerge branch '238-isc_net_recvoverflow-support-is-broken' into 'master'
Mark Andrews [Fri, 18 May 2018 05:44:02 +0000 (01:44 -0400)] 
Merge branch '238-isc_net_recvoverflow-support-is-broken' into 'master'

Resolve "ISC_NET_RECVOVERFLOW support is broken."

Closes #238

See merge request isc-projects/bind9!226

8 years agoISC_SOCKEVENTATTR_TRUNC was not be set
Mark Andrews [Tue, 1 May 2018 06:52:01 +0000 (16:52 +1000)] 
ISC_SOCKEVENTATTR_TRUNC was not be set

8 years agoMerge branch 'placeholder' into 'master'
Mark Andrews [Fri, 18 May 2018 02:41:19 +0000 (22:41 -0400)] 
Merge branch 'placeholder' into 'master'

add placeholder

See merge request isc-projects/bind9!299

8 years agoadd placeholder
Mark Andrews [Fri, 18 May 2018 02:32:37 +0000 (12:32 +1000)] 
add placeholder

8 years agoMerge branch '251-documentation-of-rpz-min-update-interval-is-inconsistent-with-imple...
Evan Hunt [Fri, 18 May 2018 02:12:17 +0000 (22:12 -0400)] 
Merge branch '251-documentation-of-rpz-min-update-interval-is-inconsistent-with-implementation' into 'master'

Resolve "Documentation of RPZ min-update-interval is inconsistent with implementation"

Closes #251

See merge request isc-projects/bind9!277

8 years agoFix ARM about min-update-interval default for RPZ zones
Mukund Sivaraman [Mon, 14 May 2018 08:29:40 +0000 (13:59 +0530)] 
Fix ARM about min-update-interval default for RPZ zones

Also, use variable names consistent with catz for rpz configuration functions

8 years agoMerge branch '267-iscpk11libs-is-not-defined-anywhere-resulting-in-dstrandom_test... 293/head
Mark Andrews [Thu, 17 May 2018 06:20:30 +0000 (02:20 -0400)] 
Merge branch '267-iscpk11libs-is-not-defined-anywhere-resulting-in-dstrandom_test-not-being-built' into 'master'

Remove dstrandom_test from lib/dns/tests/Atffile

See merge request isc-projects/bind9!292

8 years agoremove dstrandom_test
Mark Andrews [Thu, 17 May 2018 06:10:24 +0000 (16:10 +1000)] 
remove dstrandom_test

8 years agoMerge branch 'u/fanf2/restore-nsid-logging' into 'master'
Mark Andrews [Thu, 17 May 2018 03:49:25 +0000 (23:49 -0400)] 
Merge branch 'u/fanf2/restore-nsid-logging' into 'master'

Fix request-nsid log level to match documentation.

See merge request isc-projects/bind9!290

8 years agoAdd CHANGES entry.
Tony Finch [Wed, 16 May 2018 19:24:24 +0000 (20:24 +0100)] 
Add CHANGES entry.

4948. [bug] When request-nsid is turned on, EDNS NSID options
should be logged at level info. Since change 3741
they have been logged at debug(3) by mistake.
[GL !290]

8 years agoFix request-nsid log level to match documentation.
Tony Finch [Wed, 16 May 2018 19:20:05 +0000 (20:20 +0100)] 
Fix request-nsid log level to match documentation.

Since change 3741 (commit 1d761cb4) they have been logged at
debug(3) by mistake.

8 years agoMerge branch '221-new-isc_random-api' into 'master'
Witold Krecicki [Wed, 16 May 2018 08:05:31 +0000 (04:05 -0400)] 
Merge branch '221-new-isc_random-api' into 'master'

Unify the random number provider

Closes #221

See merge request isc-projects/bind9!269

8 years agoAdd CHANGES entry.
Ondřej Surý [Mon, 14 May 2018 10:45:43 +0000 (12:45 +0200)] 
Add CHANGES entry.

4947.   [func]          Replace all random functions with isc_random(),
                        isc_random_buf() and isc_random_uniform() API.
                        [GL #221]

8 years agoAdd release notes.
Ondřej Surý [Mon, 14 May 2018 10:43:19 +0000 (12:43 +0200)] 
Add release notes.

8 years agoRemove -p pseudo-random documentation from dnssec-signzone
Ondřej Surý [Mon, 14 May 2018 07:37:56 +0000 (09:37 +0200)] 
Remove -p pseudo-random documentation from dnssec-signzone

8 years agoRemove genrandom man page
Ondřej Surý [Mon, 14 May 2018 07:31:17 +0000 (09:31 +0200)] 
Remove genrandom man page

8 years agoRemove -p option usage from rpz test
Ondřej Surý [Tue, 24 Apr 2018 19:11:48 +0000 (21:11 +0200)] 
Remove -p option usage from rpz test

8 years agoRemove genrandom command and all usage of specific random files throughout the system...
Ondřej Surý [Tue, 24 Apr 2018 14:01:23 +0000 (16:01 +0200)] 
Remove genrandom command and all usage of specific random files throughout the system test suite

8 years agoReplace all random functions with isc_random, isc_random_buf and isc_random_uniform...
Ondřej Surý [Sun, 22 Apr 2018 12:56:28 +0000 (14:56 +0200)] 
Replace all random functions with isc_random, isc_random_buf and isc_random_uniform API.

The three functions has been modeled after the arc4random family of
functions, and they will always return random bytes.

The isc_random family of functions internally use these CSPRNG (if available):

1. getrandom() libc call (might be available on Linux and Solaris)
2. SYS_getrandom syscall (might be available on Linux, detected at runtime)
3. arc4random(), arc4random_buf() and arc4random_uniform() (available on BSDs and Mac OS X)
4. crypto library function:
4a. RAND_bytes in case OpenSSL
4b. pkcs_C_GenerateRandom() in case PKCS#11 library

8 years agoMerge branch '209-glue-is-no-longer-included' into 'master'
Ondřej Surý [Wed, 16 May 2018 06:27:32 +0000 (02:27 -0400)] 
Merge branch '209-glue-is-no-longer-included' into 'master'

Resolve "Glue is no longer included for non-DNSSEC-signed zones since CHANGE 4596"

Closes #209

See merge request isc-projects/bind9!247

8 years agoAdd CHANGES entry
Mukund Sivaraman [Wed, 2 May 2018 07:47:36 +0000 (13:17 +0530)] 
Add CHANGES entry

8 years agoAdd system test
Mukund Sivaraman [Wed, 2 May 2018 07:37:14 +0000 (13:07 +0530)] 
Add system test

8 years agoDon't validate non-pending glue when adding to the additional section
Mukund Sivaraman [Wed, 2 May 2018 06:48:44 +0000 (12:18 +0530)] 
Don't validate non-pending glue when adding to the additional section

8 years agoMerge branch '233-clarify-documentation-of-update-policy-tcp-self-and-6to4-self'...
Evan Hunt [Tue, 15 May 2018 20:19:27 +0000 (16:19 -0400)] 
Merge branch '233-clarify-documentation-of-update-policy-tcp-self-and-6to4-self' into 'master'

Resolve "Clarify documentation of update-policy tcp-self and 6to4-self"

Closes #233

See merge request isc-projects/bind9!227

8 years agorewrite the update-policy documentation
Evan Hunt [Tue, 15 May 2018 20:05:05 +0000 (13:05 -0700)] 
rewrite the update-policy documentation

- clarify the behavior of the name and identity fields for various
  rule types, particularly tcp-self and 6to4-self.

8 years agoMerge branch '258-address-ubsan-warnings' into 'master'
Michał Kępień [Tue, 15 May 2018 07:27:27 +0000 (03:27 -0400)] 
Merge branch '258-address-ubsan-warnings' into 'master'

Address issues found by ubsan

Closes #258

See merge request isc-projects/bind9!278

8 years agoisc_buffer_*(): if source can be NULL, only call memmove() when length is non-zero
Michał Kępień [Tue, 15 May 2018 06:18:01 +0000 (08:18 +0200)] 
isc_buffer_*(): if source can be NULL, only call memmove() when length is non-zero

Certain isc_buffer_*() functions might call memmove() with the second
argument (source) set to NULL and the third argument (length) set to 0.
While harmless, it triggers an ubsan warning:

    runtime error: null pointer passed as argument 2, which is declared to never be null

Modify all memmove() call sites in lib/isc/include/isc/buffer.h and
lib/isc/buffer.c which may potentially use NULL as the second argument
(source) so that memmove() is only called if the third argument (length)
is non-zero.

8 years agodns_rdataslab_merge(): use dns_rdata_compare() instead of compare_rdata()
Michał Kępień [Tue, 15 May 2018 06:18:01 +0000 (08:18 +0200)] 
dns_rdataslab_merge(): use dns_rdata_compare() instead of compare_rdata()

compare_rdata() was meant to be used as a qsort() callback.  Meanwhile,
dns_rdataslab_merge() calls compare_rdata() for a pair of dns_rdata_t
structures rather than a pair of struct xrdata structures, which is
harmless, but triggers an ubsan warning:

    rdataslab.c:84:33: runtime error: member access within address <address> with insufficient space for an object of type 'const struct xrdata'

Use dns_rdata_compare() instead of compare_rdata() to prevent the
warning from being triggered.

8 years agoMerge branch '252-9-9-sigs_test-updatesigs-is-failing' into 'master'
Michał Kępień [Mon, 14 May 2018 07:26:43 +0000 (03:26 -0400)] 
Merge branch '252-9-9-sigs_test-updatesigs-is-failing' into 'master'

Skip lib/dns/tests/sigs_test for builds without DNSSEC support

Closes #252

See merge request isc-projects/bind9!271

8 years agoExtend the list of headers included by lib/dns/tests/sigs_test.c
Michał Kępień [Mon, 14 May 2018 06:55:50 +0000 (08:55 +0200)] 
Extend the list of headers included by lib/dns/tests/sigs_test.c

8 years agoreturn untested if not built with OPENSSL or PKCS11CRYPTO
Mark Andrews [Mon, 14 May 2018 01:52:54 +0000 (11:52 +1000)] 
return untested if not built with OPENSSL or PKCS11CRYPTO

8 years agoMerge branch 'dont-close-stderr-doc' into 'master'
Ondřej Surý [Mon, 14 May 2018 06:08:52 +0000 (02:08 -0400)] 
Merge branch 'dont-close-stderr-doc' into 'master'

Add notice about closing stdout/stderr file descriptors to style.md

See merge request isc-projects/bind9!272

8 years agoAdd notice about closing stdout/stderr file descriptors to style.md
Ondřej Surý [Mon, 14 May 2018 05:54:23 +0000 (07:54 +0200)] 
Add notice about closing stdout/stderr file descriptors to style.md

8 years agoMerge branch '244-enforce-crypto-library' into 'master'
Evan Hunt [Mon, 14 May 2018 02:27:33 +0000 (22:27 -0400)] 
Merge branch '244-enforce-crypto-library' into 'master'

Disable builds without cryptographic provider (OpenSSL or PKCS#11)

Closes #244

See merge request isc-projects/bind9!266

8 years agoCHANGES and release note
Evan Hunt [Mon, 14 May 2018 02:18:39 +0000 (19:18 -0700)] 
CHANGES and release note

8 years agoEnforce usage of OpenSSL or PKCS#11 library in platform.h header
Ondřej Surý [Fri, 11 May 2018 11:39:42 +0000 (13:39 +0200)] 
Enforce usage of OpenSSL or PKCS#11 library in platform.h header

8 years agoEnforce crypto selection in configure
Evan Hunt [Mon, 26 Feb 2018 07:19:18 +0000 (23:19 -0800)] 
Enforce crypto selection in configure

8 years agoMerge branch '9-remove-dolar-ids-and-other-cruft' into 'master'
Ondřej Surý [Fri, 11 May 2018 12:18:32 +0000 (08:18 -0400)] 
Merge branch '9-remove-dolar-ids-and-other-cruft' into 'master'

Remove $Id$s and other cruft in a batch

See merge request isc-projects/bind9!263

8 years agoRemove $Id markers, Principal Author and Reviewed tags from the full source tree
Ondřej Surý [Tue, 17 Apr 2018 16:32:20 +0000 (09:32 -0700)] 
Remove $Id markers, Principal Author and Reviewed tags from the full source tree

8 years agoMerge branch 'redirect-stderr-to-dev-null' into 'master'
Ondřej Surý [Fri, 11 May 2018 11:10:42 +0000 (07:10 -0400)] 
Merge branch 'redirect-stderr-to-dev-null' into 'master'

Use 2>/dev/null instead of '>&-'

See merge request isc-projects/bind9!262

8 years agoUpdate tests to not use '>&-' that closes file descriptor, but instead use correct...
Ondřej Surý [Tue, 24 Apr 2018 18:58:58 +0000 (20:58 +0200)] 
Update tests to not use '>&-' that closes file descriptor, but instead use correct redirection to '>/dev/null'

8 years agoMerge branch '239-don-t-use-null-as-a-argument-to-a-varargs-function-as-it-may-not...
Michał Kępień [Fri, 11 May 2018 06:20:43 +0000 (02:20 -0400)] 
Merge branch '239-don-t-use-null-as-a-argument-to-a-varargs-function-as-it-may-not-be-promoted-properly' into 'master'

Resolve "don't use NULL as a argument to a varargs function as it may not be promoted properly"

Closes #239

See merge request isc-projects/bind9!228

8 years agosilence cppcheck portability warning
Mark Andrews [Tue, 1 May 2018 08:12:41 +0000 (18:12 +1000)] 
silence cppcheck portability warning

8 years agoMerge branch '248-named-9-12-uses-too-much-memory-with-tuning-large-regression-vs...
Mark Andrews [Fri, 11 May 2018 01:27:10 +0000 (21:27 -0400)] 
Merge branch '248-named-9-12-uses-too-much-memory-with-tuning-large-regression-vs-9-11' into 'master'

Resolve "named 9.12 uses too much memory with `--tuning=large` (regression vs. 9.11)"

Closes #248

See merge request isc-projects/bind9!251

8 years agoadd CHANGES note
Mark Andrews [Thu, 10 May 2018 02:23:55 +0000 (12:23 +1000)] 
add CHANGES note