bind9/bin
Michał Kępień e395ff54e5 Teach cppcheck that fatal() does not return
cppcheck is not aware that the bin/dnssec/dnssectool.c:fatal() function
does not return.  This triggers certain cppcheck 2.2 false positives,
for example:

    bin/dnssec/dnssec-signzone.c:3470:13: warning: Either the condition 'ndskeys==8' is redundant or the array 'dskeyfile[8]' is accessed at index 8, which is out of bounds. [arrayIndexOutOfBoundsCond]
       dskeyfile[ndskeys++] = isc_commandline_argument;
                ^
    bin/dnssec/dnssec-signzone.c:3467:16: note: Assuming that condition 'ndskeys==8' is not redundant
       if (ndskeys == MAXDSKEYS) {
                   ^
    bin/dnssec/dnssec-signzone.c:3470:13: note: Array index out of bounds
       dskeyfile[ndskeys++] = isc_commandline_argument;
                ^

    bin/dnssec/dnssec-signzone.c:771:20: warning: Either the condition 'l->hashbuf==NULL' is redundant or there is pointer arithmetic with NULL pointer. [nullPointerArithmeticRedundantCheck]
     memset(l->hashbuf + l->entries * l->length, 0, l->length);
                       ^
    bin/dnssec/dnssec-signzone.c:767:18: note: Assuming that condition 'l->hashbuf==NULL' is not redundant
      if (l->hashbuf == NULL) {
                     ^
    bin/dnssec/dnssec-signzone.c:771:20: note: Null pointer addition
     memset(l->hashbuf + l->entries * l->length, 0, l->length);
                       ^

Instead of suppressing all such warnings individually, conditionally
define a preprocessor macro which prevents them from being triggered.

(cherry picked from commit d9701e22b5)
2020-11-25 13:21:58 +01:00
..
check update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
confgen update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
delv update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
dig Output timestamps in yaml to the microsecond if -u is specified. 2020-10-01 00:14:45 +10:00
dnssec Teach cppcheck that fatal() does not return 2020-11-25 13:21:58 +01:00
named Update ARM and other documents 2020-11-12 10:13:04 +01:00
nsupdate The dns_message_create() cannot fail, change the return to void 2020-09-30 14:26:26 +02:00
pkcs11 update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
plugins update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
python update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
rndc incorrect markup in rndc.rst lead to bad layout 2020-10-06 11:09:05 +11:00
tests Fix syntax in echo_i messages 2020-11-20 10:43:21 +11:00
tools Try to improve rrl timing 2020-10-15 11:41:20 +11:00
win32/BINDInstall update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
Makefile.in name change from "hook modules" to "plugins" 2018-12-06 10:36:50 -08:00