From: Christian Grothoff Date: Fri, 16 Sep 2011 14:02:03 +0000 (+0000) Subject: out of bounds, constant not named, c3042 X-Git-Tag: initial-import-from-subversion-38251~17079 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=805c5cf9d9db6c6cafdf635f49c98154a485dac2;p=oweals%2Fgnunet.git out of bounds, constant not named, c3042 --- diff --git a/src/vpn/gnunet-service-dns.c b/src/vpn/gnunet-service-dns.c index 80cbbbd16..72b58f755 100644 --- a/src/vpn/gnunet-service-dns.c +++ b/src/vpn/gnunet-service-dns.c @@ -93,7 +93,7 @@ static struct uint16_t local_port; char *name; uint8_t namelen; -} query_states[UINT16_MAX]; +} query_states[UINT16_MAX+1]; /** * A struct used to give more than one value as @@ -1383,7 +1383,7 @@ run (void *cls, struct GNUNET_SERVER_Handle *server, unsigned int i; - for (i = 0; i < 65536; i++) + for (i = 0; i < UINT16_MAX + 1; i++) { query_states[i].valid = GNUNET_NO; }