Files
bind9/lib/dns
Michał Kępień ce796ac1f4 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:1384:43: warning: ‘%04u’ directive output may be truncated writing between 4 and 10 bytes into a region of size 6 [-Wformat-truncation=]
     1384 |   snprintf(name, sizeof(name), "isc-worker%04u", i);
          |                                           ^~~~
    task.c:1384:32: note: directive argument in the range [0, 4294967294]
     1384 |   snprintf(name, sizeof(name), "isc-worker%04u", i);
          |                                ^~~~~~~~~~~~~~~~
    task.c:1384:3: note: ‘snprintf’ output between 15 and 21 bytes into a destination of size 16
     1384 |   snprintf(name, sizeof(name), "isc-worker%04u", i);
          |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    private_test.c: In function ‘private_nsec3_totext_test’:
    private_test.c:110:9: warning: array subscript 4 is outside array bounds of ‘uint32_t[1]’ {aka ‘unsigned int[1]’} [-Warray-bounds]
      110 |  while (*sp == '\0' && slen > 0) {
          |         ^~~
    private_test.c:103:11: note: while referencing ‘salt’
      103 |  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).
2019-06-11 10:18:23 +02:00
..
2019-05-13 10:05:03 +07:00
2019-06-05 13:08:12 +10:00
2019-03-14 13:34:59 -07:00
2019-06-05 13:08:12 +10:00
2019-05-08 18:17:55 -07:00
2018-12-11 11:32:24 +01:00
2019-05-13 10:05:03 +07:00
2019-06-05 07:49:23 -07:00
2019-06-04 01:23:01 -04:00
2019-05-21 10:23:17 +00:00
2019-05-13 10:05:03 +07:00
2019-04-06 12:22:49 -07:00
2019-03-13 10:51:56 +11:00
2019-04-11 15:22:30 +02:00