bind9/lib/isc
Michal Nowak 7ceeaca0dc
Fix arguments with mismatched bound in lib/isc/sha2.c
GCC 11 produced the following warnings:

    sha2.c:888:26: error: argument 1 of type ‘uint8_t[]’ {aka ‘unsigned char[]’} with mismatched bound [-Werror=array-parameter=]
      888 | isc_sha224_final(uint8_t digest[], isc_sha224_t *context) {
          |                  ~~~~~~~~^~~~~~~~
    In file included from sha2.c:58:
    ./include/isc/sha2.h:132:24: note: previously declared as ‘uint8_t[28]’ {aka ‘unsigned char[28]’}
      132 | void isc_sha224_final (uint8_t[ISC_SHA224_DIGESTLENGTH], isc_sha224_t *);
          |                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    sha2.c:1151:26: error: argument 1 of type ‘uint8_t[]’ {aka ‘unsigned char[]’} with mismatched bound [-Werror=array-parameter=]
     1151 | isc_sha256_final(uint8_t digest[], isc_sha256_t *context) {
          |                  ~~~~~~~~^~~~~~~~
    In file included from sha2.c:58:
    ./include/isc/sha2.h:139:24: note: previously declared as ‘uint8_t[32]’ {aka ‘unsigned char[32]’}
      139 | void isc_sha256_final (uint8_t[ISC_SHA256_DIGESTLENGTH], isc_sha256_t *);
          |                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    sha2.c:1514:31: error: argument 1 of type ‘uint8_t[]’ {aka ‘unsigned char[]’} with mismatched bound [-Werror=array-parameter=]
     1514 | void isc_sha512_final(uint8_t digest[], isc_sha512_t *context) {
          |                       ~~~~~~~~^~~~~~~~
    In file included from sha2.c:58:
    ./include/isc/sha2.h:153:24: note: previously declared as ‘uint8_t[64]’ {aka ‘unsigned char[64]’}
      153 | void isc_sha512_final (uint8_t[ISC_SHA512_DIGESTLENGTH], isc_sha512_t *);
          |                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    sha2.c:1567:26: error: argument 1 of type ‘uint8_t[]’ {aka ‘unsigned char[]’} with mismatched bound [-Werror=array-parameter=]
     1567 | isc_sha384_final(uint8_t digest[], isc_sha384_t *context) {
          |                  ~~~~~~~~^~~~~~~~
    In file included from sha2.c:58:
    ./include/isc/sha2.h:146:24: note: previously declared as ‘uint8_t[48]’ {aka ‘unsigned char[48]’}
      146 | void isc_sha384_final (uint8_t[ISC_SHA384_DIGESTLENGTH], isc_sha384_t *);
          |                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    sha2.c:1604:44: error: argument 2 of type ‘char[]’ with mismatched bound [-Werror=array-parameter=]
     1604 | isc_sha224_end(isc_sha224_t *context, char buffer[]) {
          |                                       ~~~~~^~~~~~~~
    In file included from sha2.c:58:
    ./include/isc/sha2.h:133:39: note: previously declared as ‘char[57]’
      133 | char *isc_sha224_end (isc_sha224_t *, char[ISC_SHA224_DIGESTSTRINGLENGTH]);
          |                                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    sha2.c:1645:44: error: argument 2 of type ‘char[]’ with mismatched bound [-Werror=array-parameter=]
     1645 | isc_sha256_end(isc_sha256_t *context, char buffer[]) {
          |                                       ~~~~~^~~~~~~~
    In file included from sha2.c:58:
    ./include/isc/sha2.h:140:39: note: previously declared as ‘char[65]’
      140 | char *isc_sha256_end (isc_sha256_t *, char[ISC_SHA256_DIGESTSTRINGLENGTH]);
          |                                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    sha2.c:1686:44: error: argument 2 of type ‘char[]’ with mismatched bound [-Werror=array-parameter=]
     1686 | isc_sha512_end(isc_sha512_t *context, char buffer[]) {
          |                                       ~~~~~^~~~~~~~
    In file included from sha2.c:58:
    ./include/isc/sha2.h:154:39: note: previously declared as ‘char[129]’
      154 | char *isc_sha512_end (isc_sha512_t *, char[ISC_SHA512_DIGESTSTRINGLENGTH]);
          |                                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    sha2.c:1727:44: error: argument 2 of type ‘char[]’ with mismatched bound [-Werror=array-parameter=]
     1727 | isc_sha384_end(isc_sha384_t *context, char buffer[]) {
          |                                       ~~~~~^~~~~~~~
    In file included from sha2.c:58:
    ./include/isc/sha2.h:147:39: note: previously declared as ‘char[97]’
      147 | char *isc_sha384_end (isc_sha384_t *, char[ISC_SHA384_DIGESTSTRINGLENGTH]);
          |                                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    cc1: all warnings being treated as errors
2021-05-20 12:55:14 +02:00
..
alpha update all copyright headers to eliminate the typo 2020-09-14 17:00:40 -07:00
ia64 update all copyright headers to eliminate the typo 2020-09-14 17:00:40 -07:00
include Lock read of refs when atomics are not available. 2020-12-10 06:31:19 +00:00
mips update all copyright headers to eliminate the typo 2020-09-14 17:00:40 -07:00
nls update all copyright headers to eliminate the typo 2020-09-14 17:00:40 -07:00
noatomic update all copyright headers to eliminate the typo 2020-09-14 17:00:40 -07:00
nothreads update all copyright headers to eliminate the typo 2020-09-14 17:00:40 -07:00
powerpc update all copyright headers to eliminate the typo 2020-09-14 17:00:40 -07:00
pthreads update all copyright headers to eliminate the typo 2020-09-14 17:00:40 -07:00
sparc64 update all copyright headers to eliminate the typo 2020-09-14 17:00:40 -07:00
tests Pass task_test also with threads disabled 2020-12-01 23:06:19 +00:00
unix Only lock access to epoll_ctl when using watcher thread 2020-12-10 02:34:36 +00:00
win32 update all copyright headers to eliminate the typo 2020-09-14 17:00:40 -07:00
x86_32 update all copyright headers to eliminate the typo 2020-09-14 17:00:40 -07:00
x86_64 update all copyright headers to eliminate the typo 2020-09-14 17:00:40 -07:00
.gitignore [master] update gitignore files; use rev-parse to get srcid 2014-06-17 13:49:30 -07:00
aes.c update all copyright headers to eliminate the typo 2020-09-14 17:00:40 -07:00
api prep 9.11.27 2021-01-21 09:38:24 +01:00
app_api.c update all copyright headers to eliminate the typo 2020-09-14 17:00:40 -07:00
assertions.c Fix 'error: ‘%s’ directive argument is null [-Werror=format-overflow=]' in assertions.c 2020-10-07 10:26:47 +02:00
backtrace-emptytbl.c update all copyright headers to eliminate the typo 2020-09-14 17:00:40 -07:00
backtrace.c Fix getrbp() 2020-10-30 09:42:24 +01:00
base32.c update all copyright headers to eliminate the typo 2020-09-14 17:00:40 -07:00
base64.c update all copyright headers to eliminate the typo 2020-09-14 17:00:40 -07:00
bind9.c update all copyright headers to eliminate the typo 2020-09-14 17:00:40 -07:00
buffer.c update all copyright headers to eliminate the typo 2020-09-14 17:00:40 -07:00
bufferlist.c update all copyright headers to eliminate the typo 2020-09-14 17:00:40 -07:00
chacha_private.h silence compiler warnings 2014-06-10 12:38:32 +10:00
commandline.c update all copyright headers to eliminate the typo 2020-09-14 17:00:40 -07:00
counter.c update all copyright headers to eliminate the typo 2020-09-14 17:00:40 -07:00
crc64.c update all copyright headers to eliminate the typo 2020-09-14 17:00:40 -07:00
entropy.c update all copyright headers to eliminate the typo 2020-09-14 17:00:40 -07:00
error.c update all copyright headers to eliminate the typo 2020-09-14 17:00:40 -07:00
event.c update all copyright headers to eliminate the typo 2020-09-14 17:00:40 -07:00
fsaccess.c update all copyright headers to eliminate the typo 2020-09-14 17:00:40 -07:00
hash.c update all copyright headers to eliminate the typo 2020-09-14 17:00:40 -07:00
heap.c update all copyright headers to eliminate the typo 2020-09-14 17:00:40 -07:00
hex.c update all copyright headers to eliminate the typo 2020-09-14 17:00:40 -07:00
hmacmd5.c update all copyright headers to eliminate the typo 2020-09-14 17:00:40 -07:00
hmacsha.c update all copyright headers to eliminate the typo 2020-09-14 17:00:40 -07:00
ht.c update all copyright headers to eliminate the typo 2020-09-14 17:00:40 -07:00
httpd.c update all copyright headers to eliminate the typo 2020-09-14 17:00:40 -07:00
inet_aton.c update all copyright headers to eliminate the typo 2020-09-14 17:00:40 -07:00
inet_ntop.c update all copyright headers to eliminate the typo 2020-09-14 17:00:40 -07:00
inet_pton.c update all copyright headers to eliminate the typo 2020-09-14 17:00:40 -07:00
iterated_hash.c update all copyright headers to eliminate the typo 2020-09-14 17:00:40 -07:00
Kyuafile regen v9_11 2017-12-29 02:23:11 +00:00
lex.c update all copyright headers to eliminate the typo 2020-09-14 17:00:40 -07:00
lfsr.c update all copyright headers to eliminate the typo 2020-09-14 17:00:40 -07:00
lib.c update all copyright headers to eliminate the typo 2020-09-14 17:00:40 -07:00
log.c update all copyright headers to eliminate the typo 2020-09-14 17:00:40 -07:00
Makefile.in update all copyright headers to eliminate the typo 2020-09-14 17:00:40 -07:00
md5.c update all copyright headers to eliminate the typo 2020-09-14 17:00:40 -07:00
mem.c Exclude isc_mem_isovermem from ThreadSanitizer 2020-09-17 17:39:03 +02:00
mutexblock.c update all copyright headers to eliminate the typo 2020-09-14 17:00:40 -07:00
netaddr.c update all copyright headers to eliminate the typo 2020-09-14 17:00:40 -07:00
netscope.c update all copyright headers to eliminate the typo 2020-09-14 17:00:40 -07:00
ondestroy.c update all copyright headers to eliminate the typo 2020-09-14 17:00:40 -07:00
parseint.c update all copyright headers to eliminate the typo 2020-09-14 17:00:40 -07:00
pk11.c update all copyright headers to eliminate the typo 2020-09-14 17:00:40 -07:00
pk11_result.c update all copyright headers to eliminate the typo 2020-09-14 17:00:40 -07:00
pool.c update all copyright headers to eliminate the typo 2020-09-14 17:00:40 -07:00
portset.c update all copyright headers to eliminate the typo 2020-09-14 17:00:40 -07:00
print.c update all copyright headers to eliminate the typo 2020-09-14 17:00:40 -07:00
quota.c update all copyright headers to eliminate the typo 2020-09-14 17:00:40 -07:00
radix.c update all copyright headers to eliminate the typo 2020-09-14 17:00:40 -07:00
random.c update all copyright headers to eliminate the typo 2020-09-14 17:00:40 -07:00
ratelimiter.c update all copyright headers to eliminate the typo 2020-09-14 17:00:40 -07:00
refcount.c Lock read of refs when atomics are not available. 2020-12-10 06:31:19 +00:00
regex.c update all copyright headers to eliminate the typo 2020-09-14 17:00:40 -07:00
region.c update all copyright headers to eliminate the typo 2020-09-14 17:00:40 -07:00
result.c update all copyright headers to eliminate the typo 2020-09-14 17:00:40 -07:00
rwlock.c Silence TSAN warning on spins in isc_rwlock_lock 2020-12-10 06:31:19 +00:00
safe.c update all copyright headers to eliminate the typo 2020-09-14 17:00:40 -07:00
serial.c update all copyright headers to eliminate the typo 2020-09-14 17:00:40 -07:00
sha1.c update all copyright headers to eliminate the typo 2020-09-14 17:00:40 -07:00
sha2.c Fix arguments with mismatched bound in lib/isc/sha2.c 2021-05-20 12:55:14 +02:00
siphash.c update all copyright headers to eliminate the typo 2020-09-14 17:00:40 -07:00
sockaddr.c Fix typo in ISC_PLAFORM_HAVESYSUNH 2020-11-26 15:09:36 +01:00
socket_api.c update all copyright headers to eliminate the typo 2020-09-14 17:00:40 -07:00
stats.c Ignore TSAN errors with getcounter and setcounter 2020-12-10 06:31:19 +00:00
string.c update all copyright headers to eliminate the typo 2020-09-14 17:00:40 -07:00
strtoul.c update all copyright headers to eliminate the typo 2020-09-14 17:00:40 -07:00
symtab.c update all copyright headers to eliminate the typo 2020-09-14 17:00:40 -07:00
task.c update all copyright headers to eliminate the typo 2020-09-14 17:00:40 -07:00
task_p.h update all copyright headers to eliminate the typo 2020-09-14 17:00:40 -07:00
taskpool.c update all copyright headers to eliminate the typo 2020-09-14 17:00:40 -07:00
timer.c update all copyright headers to eliminate the typo 2020-09-14 17:00:40 -07:00
timer_p.h update all copyright headers to eliminate the typo 2020-09-14 17:00:40 -07:00
tm.c update all copyright headers to eliminate the typo 2020-09-14 17:00:40 -07:00
utf8.c update all copyright headers to eliminate the typo 2020-09-14 17:00:40 -07:00
version.c update all copyright headers to eliminate the typo 2020-09-14 17:00:40 -07:00