bind9/lib/dns/tests
Michał Kępień 1d0bb1de10 Address GCC 9.1 -O3 compilation warnings
Compiling with -O3 triggers the following warnings with GCC 9.1:

    task.c: In function ‘isc_taskmgr_create’:
    task.c:1386:43: warning: ‘%04u’ directive output may be truncated writing between 4 and 10 bytes into a region of size 6 [-Wformat-truncation=]
     1386 |   snprintf(name, sizeof(name), "isc-worker%04u", i);
          |                                           ^~~~
    task.c:1386:32: note: directive argument in the range [0, 4294967294]
     1386 |   snprintf(name, sizeof(name), "isc-worker%04u", i);
          |                                ^~~~~~~~~~~~~~~~
    task.c:1386:3: note: ‘snprintf’ output between 15 and 21 bytes into a destination of size 16
     1386 |   snprintf(name, sizeof(name), "isc-worker%04u", i);
          |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    private_test.c: In function ‘private_nsec3_totext_test’:
    private_test.c:113:9: warning: array subscript 4 is outside array bounds of ‘uint32_t[1]’ {aka ‘unsigned int[1]’} [-Warray-bounds]
      113 |  while (*sp == '\0' && slen > 0) {
          |         ^~~
    private_test.c:106:11: note: while referencing ‘salt’
      106 |  uint32_t salt;
          |           ^~~~

Prevent these warnings from being triggered by increasing the size of
the relevant array (task.c) and reordering conditions (private_test.c).

(cherry picked from commit ce796ac1f4)
2019-06-11 10:19:04 +02:00
..
testdata check flags for no key in fromwire for *KEY 2019-04-09 14:22:50 +10:00
testkeys Add a framework for dns__zone_updatesigs() unit tests 2018-05-09 13:32:09 +02:00
.gitignore Add lib/dns/tests/testdata/dnstap/dnstap.file to .gitignore 2018-12-11 11:32:24 +01:00
acl_test.c convert acl_test 2018-11-14 20:17:04 -08:00
db_test.c convert db_test 2018-11-14 20:17:04 -08:00
dbdiff_test.c convert dbdiff_test 2018-11-14 20:17:04 -08:00
dbiterator_test.c convert dbiterator_test 2018-11-14 20:17:04 -08:00
dbversion_test.c Remove support for compiling without assertions (Both ISC_CHECK_ALL, ISC_CHECK_NONE are now gone) 2019-01-31 11:16:08 +01:00
dh_test.c convert dh_test 2018-11-14 20:17:04 -08:00
dispatch_test.c isc_mutex_init returns 'void' 2018-11-22 11:51:49 +00:00
dnstap_test.c Make lib/dns/dnstap.pb-c.h private header 2019-03-22 12:07:31 +01:00
dnstest.c Process master file comments and make input invalid again 2019-04-11 19:47:43 +10:00
dnstest.h convert rdata_test 2018-11-14 20:17:04 -08:00
dst_test.c Remove RSAMD5 support 2018-12-11 11:32:24 +01:00
geoip_test.c convert geoip_test 2018-11-14 20:17:04 -08:00
Kdh.+002+18602.key [master] add diffie-hellman key unit test 2014-10-17 15:55:37 -07:00
keytable_test.c Make NTAs work with validating forwarders 2019-05-09 20:37:37 -07:00
Krsa.+005+29235.key Merged rt43077 (new RSA verify unit test) 2016-08-22 14:10:21 +02:00
Kyuafile convert keytable_test 2018-11-14 20:17:04 -08:00
Makefile.in Move the CMocka include directories from CFLAGS to CINCLUDES where it belongs to not get overriden later by the default CFLAGS rule 2018-11-26 16:16:34 +01:00
master_test.c check flags for no key in fromwire for *KEY 2019-04-09 14:22:50 +10:00
mkraw.pl Remove $Id markers, Principal Author and Reviewed tags from the full source tree 2018-05-11 13:17:46 +02:00
name_test.c using 0 instead of false 2019-04-23 11:45:33 +10:00
nsec3_test.c convert rdata_test 2018-11-14 20:17:04 -08:00
peer_test.c convert peer_test 2018-11-14 20:17:04 -08:00
private_test.c Address GCC 9.1 -O3 compilation warnings 2019-06-11 10:19:04 +02:00
rbt_serialize_test.c remove (or hide behind a 'verbose' flag) extra output from system tests 2018-11-16 20:46:14 +00:00
rbt_test.c convert rbt_test 2018-11-14 20:17:04 -08:00
rdata_test.c enforce known SSHFP finger print lengths 2019-05-09 08:48:28 +10:00
rdataset_test.c convert rdataset_test 2018-11-14 20:17:04 -08:00
rdatasetstats_test.c convert rdatasetstats_test 2018-11-14 20:17:04 -08:00
resolver_test.c convert resolver_test 2018-11-14 20:17:04 -08:00
result_test.c improve clang / cmocka integration 2019-03-05 10:42:01 -08:00
rsa_test.c Remove RSAMD5 support 2018-12-11 11:32:24 +01:00
sigs_test.c convert sigs_test 2018-11-14 20:17:04 -08:00
time_test.c convert time_test 2018-11-14 20:17:04 -08:00
tkey_test.c remove (or hide behind a 'verbose' flag) extra output from system tests 2018-11-16 20:46:14 +00:00
tsig_test.c convert tsig_test 2018-11-14 20:17:04 -08:00
update_test.c convert update_test; remove ATF from lib/dns/tests 2018-11-14 20:17:04 -08:00
zonemgr_test.c convert zonemgr_test 2018-11-14 20:17:04 -08:00
zt_test.c convert zt_test 2018-11-14 20:17:04 -08:00