]>
git.ipfire.org Git - thirdparty/bind9.git/log
Ondřej Surý [Wed, 9 Oct 2019 06:02:05 +0000 (08:02 +0200)]
Fix the GitLab issue numbers in CHANGES and notes.xml
Tinderbox User [Sun, 6 Oct 2019 03:16:14 +0000 (03:16 +0000)]
regen master
Ondřej Surý [Fri, 4 Oct 2019 06:40:56 +0000 (02:40 -0400)]
Merge branch 'ondrej/cleanup-copyrights' into 'master'
Cleanup the COPYRIGHTS file
See merge request isc-projects/bind9!2377
Ondřej Surý [Mon, 23 Sep 2019 10:36:44 +0000 (12:36 +0200)]
Remove The OpenSSL Project from COPYRIGHT, the OpenSSL patches were removed
Ondřej Surý [Mon, 23 Sep 2019 10:35:23 +0000 (12:35 +0200)]
Cleanup the last bits copyrighted to RSA Security and remove them from COPYRIGHT file
Ondřej Surý [Mon, 23 Sep 2019 10:28:52 +0000 (12:28 +0200)]
Remove Doug Rabson and Jake Burkholder from COPYRIGHT, the code was removed
Ondřej Surý [Mon, 23 Sep 2019 10:27:55 +0000 (12:27 +0200)]
Remove Aaron D. Gifford from COPYRIGHT, the code was removed
Ondřej Surý [Mon, 23 Sep 2019 10:27:29 +0000 (12:27 +0200)]
Remove Rice University from COPYRIGHT, the code was removed
Ondřej Surý [Mon, 23 Sep 2019 10:26:27 +0000 (12:26 +0200)]
Remove Japan Network Information Center from COPYRIGHT, the code was removed
Ondřej Surý [Fri, 4 Oct 2019 06:35:58 +0000 (02:35 -0400)]
Merge branch 'ondrej/remove-rsa-pkcs11-header-remnants' into 'master'
Remove unused RSA Security copyrighted cryptoki.h header
See merge request isc-projects/bind9!2445
Ondřej Surý [Mon, 23 Sep 2019 10:35:23 +0000 (12:35 +0200)]
Remove unused RSA Security copyrighted cryptoki.h header
Evan Hunt [Fri, 4 Oct 2019 06:16:14 +0000 (02:16 -0400)]
Merge branch '1226-yaml-empty-edns-options' into 'master'
Resolve "dig: EDNS options in requests cause bad YAML output"
Closes #1226
See merge request isc-projects/bind9!2345
Evan Hunt [Wed, 2 Oct 2019 03:57:24 +0000 (20:57 -0700)]
CHANGES
Evan Hunt [Sat, 14 Sep 2019 17:51:42 +0000 (10:51 -0700)]
fix digdelv KEY-TAG test
also incidentally added several missing ret=0 statements,
and removed some duplicates.
Evan Hunt [Tue, 1 Oct 2019 22:37:40 +0000 (15:37 -0700)]
TCP KEEPALIVE was missing from yaml output
Evan Hunt [Sat, 14 Sep 2019 17:23:24 +0000 (10:23 -0700)]
always print a colon after EDNS option names in text output
make the same change as in the previous commit to non-YAML text output,
for better readability and consistency between formats.
Evan Hunt [Sat, 14 Sep 2019 17:23:24 +0000 (10:23 -0700)]
always print a colon after EDNS option names in YAML output
previously, if the option was empty, then it was printed without a
colon, which could not be parsed as YAML. adding a colon in all cases
addresses this problem.
Mark Andrews [Fri, 4 Oct 2019 01:31:11 +0000 (21:31 -0400)]
Merge branch 'marka-silence-clang' into 'master'
silence clang warning by using local variable.
See merge request isc-projects/bind9!2419
Mark Andrews [Tue, 1 Oct 2019 04:06:53 +0000 (14:06 +1000)]
silence clang warning by using local variable.
'isc_commandline_index' is a global variable so it can theoretically
change result between if expressions. Save 'argv[isc_commandline_index]'
to local variable 'arg1' and use 'arg1 == NULL' in if expressions
instead of 'argc < isc_commandline_index + 1'. This allows clang
to correctly determine what code is reachable.
Ondřej Surý [Thu, 3 Oct 2019 14:10:14 +0000 (10:10 -0400)]
Merge branch 'ondrej/cppcheck-suppressions-list' into 'master'
Use util/suppressions.txt for Cppcheck suppressions list
See merge request isc-projects/bind9!2437
Ondřej Surý [Thu, 3 Oct 2019 12:02:08 +0000 (14:02 +0200)]
Use util/suppressions.txt for Cppcheck suppressions list
Ondřej Surý [Thu, 3 Oct 2019 07:32:28 +0000 (03:32 -0400)]
Merge branch 'ondrej/enable-cppcheck' into 'master'
Add Cppcheck job to the CI
See merge request isc-projects/bind9!2403
Ondřej Surý [Fri, 27 Sep 2019 10:48:23 +0000 (12:48 +0200)]
Remove randomly scattered additional style check suppressions that caused unmatchedSuppression
Ondřej Surý [Fri, 27 Sep 2019 10:12:14 +0000 (12:12 +0200)]
lib/ns/query.c: Fix invalid order of DbC checks that could cause dereference before NULL check
Ondřej Surý [Fri, 27 Sep 2019 10:11:16 +0000 (12:11 +0200)]
lib/ns/interfacemgr.c: Fix invalid order of DbC checks that could cause dereference before NULL check
Ondřej Surý [Fri, 27 Sep 2019 10:10:44 +0000 (12:10 +0200)]
lib/ns/client.c: Fix invalid order of DbC checks that could cause dereference before NULL check
Ondřej Surý [Fri, 27 Sep 2019 10:07:32 +0000 (12:07 +0200)]
lib/isccfg/parser.c: Fix invalid order of DbC checks that could cause dereference before NULL check
Ondřej Surý [Fri, 27 Sep 2019 10:06:16 +0000 (12:06 +0200)]
lib/isccfg/aclconf.c: Suppress nullPointerRedundantCheck false positive
Ondřej Surý [Fri, 27 Sep 2019 10:04:35 +0000 (12:04 +0200)]
lib/isc/unix/socket.c: Suppress preprocessorErrorDirective error from Cppcheck
Ondřej Surý [Fri, 27 Sep 2019 10:02:41 +0000 (12:02 +0200)]
lib/isc/task.c: Fix invalid order of DbC checks that could cause dereference before NULL check
Ondřej Surý [Fri, 27 Sep 2019 10:01:30 +0000 (12:01 +0200)]
lib/isc/pkc11.c: Fix possible NULL pointer dereference in push_attribute()
Ondřej Surý [Fri, 27 Sep 2019 09:53:49 +0000 (11:53 +0200)]
lib/isc/buffer.c: Fix invalid order of DbC checks that could cause dereference before NULL check
Ondřej Surý [Fri, 27 Sep 2019 09:51:15 +0000 (11:51 +0200)]
lib/dns/tsig.c: Suppress Cppcheck false positive error uninitStructMember
Ondřej Surý [Fri, 27 Sep 2019 09:40:44 +0000 (11:40 +0200)]
lib/dns/tests/rbt_serialize_test.c: Fix dereference before DbC check
Ondřej Surý [Fri, 27 Sep 2019 09:40:00 +0000 (11:40 +0200)]
Instead of declaring unused va_list, just don't declare it at all
Ondřej Surý [Fri, 27 Sep 2019 09:37:27 +0000 (11:37 +0200)]
lib/dns/rdatalist.c: Fix dereference before DbC check
Ondřej Surý [Fri, 27 Sep 2019 08:40:51 +0000 (10:40 +0200)]
lib/dns/rdata/*/*.c: Silence false positive nullPointerRedundantCheck warning from Cppcheck
Cppcheck gets confused by:
void bar(void *arg) {
foo *data = arg;
REQUIRE(source != NULL);
REQUIRE(data->member != NULL);
}
and for consistency the DbC check needs to be changed to
void bar(void *arg) {
foo *data = arg;
REQUIRE(data != NULL);
REQUIRE(data->member != NULL);
}
Ondřej Surý [Fri, 27 Sep 2019 08:38:18 +0000 (10:38 +0200)]
lib/dns/rdata.c: Silence false positive nullPointerRedundantCheck warning from Cppcheck
Ondřej Surý [Fri, 27 Sep 2019 08:35:49 +0000 (10:35 +0200)]
lib/dns/rbtdb.c: Add DbC check to safely dereference rbtdb in rbt_datafixer()
Ondřej Surý [Fri, 27 Sep 2019 08:28:30 +0000 (10:28 +0200)]
lib/dns/rbt.c: Suppress nullPointerRedundantCheck warnings from Cppcheck
Ondřej Surý [Fri, 27 Sep 2019 08:05:27 +0000 (10:05 +0200)]
lib/dns/name.c: Fix dereference before DbC check reported by Cppcheck
Ondřej Surý [Fri, 27 Sep 2019 08:04:26 +0000 (10:04 +0200)]
lib/dns/gssapi_link.c: Fix %d -> %u formatting when printing unsigned integers
Ondřej Surý [Fri, 27 Sep 2019 08:00:46 +0000 (10:00 +0200)]
Fix passing NULL after the last typed argument to a variadic function leads to undefined behaviour.
From Cppcheck:
Passing NULL after the last typed argument to a variadic function leads to
undefined behaviour. The C99 standard, in section 7.15.1.1, states that if the
type used by va_arg() is not compatible with the type of the actual next
argument (as promoted according to the default argument promotions), the
behavior is undefined. The value of the NULL macro is an implementation-defined
null pointer constant (7.17), which can be any integer constant expression with
the value 0, or such an expression casted to (void*) (6.3.2.3). This includes
values like 0, 0L, or even 0LL.In practice on common architectures, this will
cause real crashes if sizeof(int) != sizeof(void*), and NULL is defined to 0 or
any other null pointer constant that promotes to int. To reproduce you might be
able to use this little code example on 64bit platforms. If the output includes
"ERROR", the sentinel had only 4 out of 8 bytes initialized to zero and was not
detected as the final argument to stop argument processing via
va_arg(). Changing the 0 to (void*)0 or 0L will make the "ERROR" output go away.
void f(char *s, ...) {
va_list ap;
va_start(ap,s);
for (;;) {
char *p = va_arg(ap,char*);
printf("%018p, %s\n", p, (long)p & 255 ? p : "");
if(!p) break;
}
va_end(ap);
}
void g() {
char *s2 = "x";
char *s3 = "ERROR";
// changing 0 to 0L for the 7th argument (which is intended to act as
// sentinel) makes the error go away on x86_64
f("first", s2, s2, s2, s2, s2, 0, s3, (char*)0);
}
void h() {
int i;
volatile unsigned char a[1000];
for (i = 0; i<sizeof(a); i++)
a[i] = -1;
}
int main() {
h();
g();
return 0;
}
Ondřej Surý [Fri, 27 Sep 2019 07:55:19 +0000 (09:55 +0200)]
lib/dns/ecdb.c: Fix couple of DbC conditions reported by Cppcheck
Ondřej Surý [Fri, 27 Sep 2019 07:49:31 +0000 (09:49 +0200)]
Fix the constification of the dns_name_t * result variable for dns_tsig_identity()
Ondřej Surý [Fri, 27 Sep 2019 07:39:35 +0000 (09:39 +0200)]
bin/named/zoneconf.c: Reset dns_name_t *tsig on every view iteration
Ondřej Surý [Fri, 27 Sep 2019 07:39:02 +0000 (09:39 +0200)]
Change dns_tsigkey_identity from macro to a function and const argument and result
Ondřej Surý [Fri, 27 Sep 2019 07:38:18 +0000 (09:38 +0200)]
Constify dns_name_t *signer argument to dns_acl_allowed()
Ondřej Surý [Fri, 27 Sep 2019 07:19:36 +0000 (09:19 +0200)]
bin/named/server.c: Fix couple of DbC conditions reported by Cppcheck
Ondřej Surý [Fri, 27 Sep 2019 06:48:06 +0000 (08:48 +0200)]
bin/dig/dighost.c: Fix REQUIRE(!= NULL) condition after the variable has been dereferenced
Ondřej Surý [Fri, 27 Sep 2019 06:46:03 +0000 (08:46 +0200)]
bin/delv/delv.c: Fix invalid logic operation in REQUIRE() condition
Ondřej Surý [Thu, 26 Sep 2019 12:47:04 +0000 (14:47 +0200)]
Add Cppcheck job to the CI
This MR changes the default Debian sid build to wrap make with bear
that creates compilation database and use the compilation database
to run Cppcheck on the source files systematically.
The job is currently set to be allowed to fail as it will take some
time to fix all the Cppcheck detected issues.
Ondřej Surý [Wed, 2 Oct 2019 12:49:00 +0000 (08:49 -0400)]
Merge branch '1119-disable-time-consuming-tests-benchmarks-when-tsan-is-enabled' into 'master'
Disable time consuming tests when compiling with Thread Sanitizer
See merge request isc-projects/bind9!2365
Ondřej Surý [Thu, 4 Jul 2019 12:25:59 +0000 (14:25 +0200)]
Disable benchmark tests when Thread Sanitizer is enabled
Ondřej Surý [Thu, 4 Jul 2019 12:25:59 +0000 (14:25 +0200)]
Declare __SANITIZE_THREAD__ in isc/util.h when clang ThreadSanitizer is used
Ondřej Surý [Wed, 2 Oct 2019 12:06:13 +0000 (08:06 -0400)]
Merge branch '1119-tsan-lib/isc/tests/timer_test.c' into 'master'
Convert all variables accessed between multiple threads to atomic
See merge request isc-projects/bind9!2364
Ondřej Surý [Thu, 4 Jul 2019 12:21:15 +0000 (14:21 +0200)]
Convert all variables accessed between multiple threads to atomic
Ondřej Surý [Wed, 2 Oct 2019 11:38:10 +0000 (07:38 -0400)]
Merge branch '1119-tsan-lib/isc/tests/task_test.c' into 'master'
Convert all variables accessed between multiple threads to atomic
See merge request isc-projects/bind9!2363
Ondřej Surý [Fri, 12 Jul 2019 14:44:51 +0000 (16:44 +0200)]
Properly initialize atomic variables
Ondřej Surý [Thu, 4 Jul 2019 12:15:39 +0000 (14:15 +0200)]
lib/isc/tests/task_test.c: Convert all variables accessed between multiple threads to atomic
Ondřej Surý [Wed, 2 Oct 2019 11:08:35 +0000 (07:08 -0400)]
Merge branch '1119-tsan-lib/dns/zone.c-flags' into 'master'
Convert the dns_zone_t flags, options and keyopts to stdatomic
See merge request isc-projects/bind9!2359
Ondřej Surý [Fri, 27 Sep 2019 12:29:17 +0000 (14:29 +0200)]
Convert DNS_ZONEKEY_, DNS_ZONEFLG_ and DNS_ZONELOADFLAG_ #defines to enums
Ondřej Surý [Thu, 26 Sep 2019 07:46:01 +0000 (09:46 +0200)]
Fix miscelaneous zone object validity checking errors (missing REQUIRE(), out of order REQUIRE())
Ondřej Surý [Thu, 4 Jul 2019 08:39:48 +0000 (10:39 +0200)]
Convert the flags, options, and keyopts of dns_zone_t structure to 64-bit stdatomic types
...and use atomic_fetch_or and atomic_fetch_and to set and clear the flags
Ondřej Surý [Wed, 2 Oct 2019 10:39:28 +0000 (06:39 -0400)]
Merge branch '1119-tsan-dispatch_test.c' into 'master'
lib/dns/tests/dispatch_test.c: Convert global responses variable to atomic to prevent data race
See merge request isc-projects/bind9!2355
Ondřej Surý [Mon, 1 Jul 2019 13:19:29 +0000 (15:19 +0200)]
Convert global variables to atomic to prevent possible data race
Stephen Morris [Wed, 2 Oct 2019 09:15:26 +0000 (05:15 -0400)]
Merge branch 'stephen/update-release-template' into 'master'
Update release checklist template
See merge request isc-projects/bind9!2428
Stephen Morris [Wed, 2 Oct 2019 08:20:02 +0000 (09:20 +0100)]
Update release template
Include a step stating that tags for the published releases must
be created in the public repository.
Tinderbox User [Wed, 2 Oct 2019 06:09:11 +0000 (06:09 +0000)]
Merge branch 'prep-release' into security-master
Tinderbox User [Wed, 2 Oct 2019 05:59:18 +0000 (05:59 +0000)]
prep 9.15.5
Evan Hunt [Wed, 2 Oct 2019 05:38:16 +0000 (22:38 -0700)]
Merge branch '16-security-mirror-key-check' into security-master
Evan Hunt [Fri, 20 Sep 2019 00:51:51 +0000 (17:51 -0700)]
CHANGES, release note
Evan Hunt [Fri, 20 Sep 2019 00:43:14 +0000 (17:43 -0700)]
fix mirror zone trust anchor check
- compare key data when checking for a trust anchor match.
- allow for the possibility of multiple trust anchors with the same key ID
so we don't overlook possible matches.
Evan Hunt [Wed, 2 Oct 2019 05:13:05 +0000 (22:13 -0700)]
Merge branch 'marka-forward-to-non-recursive' into security-master
Mark Andrews [Wed, 25 Sep 2019 01:39:17 +0000 (11:39 +1000)]
add release note entry
Mark Andrews [Wed, 25 Sep 2019 01:37:08 +0000 (11:37 +1000)]
add CHANGES
Mark Andrews [Thu, 12 Sep 2019 06:03:41 +0000 (16:03 +1000)]
reset fctx->qmindcname and fctx->qminname after processing a delegation
Mark Andrews [Wed, 11 Sep 2019 07:08:47 +0000 (17:08 +1000)]
check recovery from forwarding to a non-recursive server
Evan Hunt [Wed, 2 Oct 2019 05:08:05 +0000 (01:08 -0400)]
Merge branch 'placeholder' into 'master'
placeholder
See merge request isc-projects/bind9!2427
Evan Hunt [Wed, 2 Oct 2019 05:07:31 +0000 (22:07 -0700)]
placeholder
Evan Hunt [Wed, 2 Oct 2019 04:13:07 +0000 (00:13 -0400)]
Merge branch '1191-qmin-fetch-failure' into 'master'
SERVFAIL if a prior qmin fetch has not been canceled when a new one starts
See merge request isc-projects/bind9!2416
Evan Hunt [Wed, 2 Oct 2019 03:47:45 +0000 (20:47 -0700)]
CHANGES
Evan Hunt [Fri, 27 Sep 2019 20:28:09 +0000 (13:28 -0700)]
SERVFAIL if a prior qmin fetch has not been canceled when a new one starts
Ondřej Surý [Tue, 1 Oct 2019 15:17:45 +0000 (11:17 -0400)]
Merge branch 'ondrej/fix-coccinelle-detected-issues' into 'master'
Various little fixes found by coccinelle
See merge request isc-projects/bind9!2325
Ondřej Surý [Mon, 9 Sep 2019 12:05:31 +0000 (14:05 +0200)]
Various little fixes found by coccinelle
The coccinellery repository provides many little semantic patches to fix common
problems in the code. The number of semantic patches in the coccinellery
repository is high and most of the semantic patches apply only for Linux, so it
doesn't make sense to run them on regular basis as the processing takes a lot of
time.
The list of issue found in BIND 9, by no means complete, includes:
- double assignment to a variable
- `continue` at the end of the loop
- double checks for `NULL`
- useless checks for `NULL` (cannot be `NULL`, because of earlier return)
- using `0` instead of `NULL`
- useless extra condition (`if (foo) return; if (!foo) { ...; }`)
- removing & in front of static functions passed as arguments
Ondřej Surý [Tue, 1 Oct 2019 14:43:56 +0000 (10:43 -0400)]
Merge branch 'ondrej/fix-gitlab-ci-for-master-branch-v2' into 'master'
Fix the triggering rule for autoreconf job (take 2)
See merge request isc-projects/bind9!2424
Ondřej Surý [Tue, 1 Oct 2019 14:42:33 +0000 (16:42 +0200)]
Fix the triggering rule for autoreconf job (take 2)
Ondřej Surý [Tue, 1 Oct 2019 14:32:27 +0000 (10:32 -0400)]
Merge branch 'ondrej/fix-gitlab-ci-for-master-branch' into 'master'
Fix docs -> autoreconf dependencies in the .gitlab-ci.yml
See merge request isc-projects/bind9!2423
Ondřej Surý [Tue, 1 Oct 2019 14:29:33 +0000 (16:29 +0200)]
Fix docs -> autoreconf dependencies in the .gitlab-ci.yml
Ondřej Surý [Tue, 1 Oct 2019 14:25:22 +0000 (10:25 -0400)]
Merge branch 'ondrej/use-%zu-for-sizeof-formatting' into 'master'
lib/dns/ssu_external.c: Use %zu for formatting sizeof() output
See merge request isc-projects/bind9!2415
Ondřej Surý [Mon, 30 Sep 2019 13:52:50 +0000 (15:52 +0200)]
lib/dns/ssu_external.c: Use %zu for formatting sizeof() output
Mark Andrews [Tue, 1 Oct 2019 13:12:09 +0000 (09:12 -0400)]
Merge branch 'marka-placeholder' into 'master'
placeholder
See merge request isc-projects/bind9!2422
Mark Andrews [Tue, 1 Oct 2019 12:56:53 +0000 (22:56 +1000)]
placeholder
Mark Andrews [Tue, 1 Oct 2019 03:11:52 +0000 (23:11 -0400)]
Merge branch 'marka-remove-unused-variable' into 'master'
remove unused variable
See merge request isc-projects/bind9!2418
Mark Andrews [Tue, 1 Oct 2019 02:47:26 +0000 (12:47 +1000)]
remove unused variable
Mark Andrews [Tue, 1 Oct 2019 01:10:28 +0000 (21:10 -0400)]
Merge branch 'marka-missing-runtime-check' into 'master'
missing RUNTIME_CHECK
See merge request isc-projects/bind9!2265
Mark Andrews [Mon, 30 Sep 2019 07:45:38 +0000 (17:45 +1000)]
add CHANGES
Ondřej Surý [Fri, 13 Sep 2019 08:52:06 +0000 (10:52 +0200)]
Move the failure handling block closer to the only place where it could fail
Ondřej Surý [Tue, 10 Sep 2019 12:42:41 +0000 (14:42 +0200)]
Replace RUNTIME_CHECK(dns_name_copy(..., NULL)) with dns_name_copynf()
Use the semantic patch from the previous commit to replace all the calls to
dns_name_copy() with NULL as third argument with dns_name_copynf().
Ondřej Surý [Tue, 10 Sep 2019 12:41:53 +0000 (14:41 +0200)]
Add semantic patch to replace RUNTIME_CHECK(dns_name_copy(..., NULL)) with dns_name_copynf