bind9/bin/dnssec
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
..
win32 Disable MSB8028 warning 2020-04-16 07:56:38 +02:00
.gitignore [master] dnssec-cds 2017-10-05 01:04:18 -07:00
dnssec-cds.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
dnssec-cds.rst update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
dnssec-dsfromkey.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
dnssec-dsfromkey.rst update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
dnssec-importkey.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
dnssec-importkey.rst Remove the .key from the beginning of the line in rst file 2020-09-30 21:43:04 +02:00
dnssec-keyfromlabel.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
dnssec-keyfromlabel.rst update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
dnssec-keygen.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
dnssec-keygen.rst update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
dnssec-revoke.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
dnssec-revoke.rst update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
dnssec-settime.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
dnssec-settime.rst update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
dnssec-signzone.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
dnssec-signzone.rst update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
dnssec-verify.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
dnssec-verify.rst update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
dnssectool.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
dnssectool.h Teach cppcheck that fatal() does not return 2020-11-25 13:21:58 +01:00
Makefile.in add support for building sphinx documentation 2020-06-01 09:54:46 +02:00