Report information
The Basics
Id:
46107
Status:
resolved
Priority:
Medium/Medium
Queue:

People
Cc:
AdminCc:

BugTracker
Version Fixed:
(no value)
Version Found:
(no value)
Versions Affected:
(no value)
Versions Planned:
(no value)
Priority:
P2 Normal
Severity:
S2 Normal
CVSS Score:
(no value)
CVE ID:
(no value)
Component:
(no value)
Area:
bug

Dates
Created:Tue, 26 Sep 2017 10:51:05 -0400
Updated:Tue, 30 Jan 2018 15:07:04 -0500
Closed:Thu, 28 Sep 2017 13:17:21 -0400



This bug tracker is no longer active.

Please go to our Gitlab to submit issues (both feature requests and bug reports) for active projects maintained by Internet Systems Consortium (ISC).

Due to security and confidentiality requirements, full access is limited to the primary maintainers.

Date: Tue, 26 Sep 2017 15:49:06 +0100
Subject: Build errors - master with --enable-developer
From: "Ray Bellis" <ray@isc.org>
To: bind9-bugs@isc.org
On Fedora Core 26, GCC 7.1.1, configured with --enable-developer making all in /home/ray/src/bind9/lib/isc/tests make[3]: Entering directory '/home/ray/src/bind9/lib/isc/tests' ... gcc -I/home/ray/src/bind9 -I../../.. -I. -Iinclude -I/home/ray/src/bind9/lib/isc/include -I../../../lib/isc -I../../../lib/isc/include -I../../../lib/isc/unix/include -I../../../lib/isc/pthreads/include -I../../../lib/isc/x86_32/ ht_test.c: In function ‘atfu_isc_ht_iterator_body’: ht_test.c:184:49: error: ‘ key of a raw hashtable!!’ directive output truncated writing 25 bytes into a region of size between 11 and 15 [-Werror=format-truncation=] snprintf((char *)key, 16, "%lld key of a raw hashtable!!", i); ~~~~~~~~~~~~~~~^~~~~~~~~~ and then several more very similar errors before the compile craps out.
Date: Wed, 27 Sep 2017 08:36:58 +1000
Subject: Re: [ISC-Bugs #46107] Build errors - master with --enable-developer
To: bind9-confidential@isc.org
From: "Mark Andrews" <marka@isc.org>
Can you try branch rt46107. It uses strlcat to pad the key to full size. We really need inline directives to turn of warnings like this when we know the code will produce them. -- Mark Andrews, ISC 1 Seymour St., Dundas Valley, NSW 2117, Australia PHONE: +61 2 9871 4742 INTERNET: marka@isc.org
There was a comment that was a sentence fragment. Fixed that. Otherwise it's fine, go ahead and commit.
Date: Wed, 27 Sep 2017 08:32:39 +0100
To: bind9-public@isc.org
Subject: Re: [ISC-Bugs #46107] Build errors - master with --enable-developer
From: "Ray Bellis" <ray@isc.org>
There's still (at least) one error in ht_test.c: ht_test.c:58:39: error: ‘%lld’ directive output may be truncated writing between 1 and 19 bytes into a region of size 16 [-Werror=format-truncation=] snprintf((char *)key, sizeof(key), "%lld", i); ht_test.c:58:38: note: directive argument in the range [1, 9223372036854775806] snprintf((char *)key, sizeof(key), "%lld", i); ^~~~~~
Date: Wed, 27 Sep 2017 17:58:00 +1000
From: "Mark Andrews" <marka@isc.org>
To: bind9-public@isc.org
Subject: Re: [ISC-Bugs #46107] Build errors - master with --enable-developer
In message <rt-4.4.1-30364-1506497596-433.46107-4-0@isc.org>, "Ray Bellis via R T" writes: > There's still (at least) one error in ht_test.c: > > ht_test.c:58:39: error: ‘%lld’ directive output may be truncated writing > between 1 and 19 bytes into a region of size 16 [-Werror=format-truncation=] > snprintf((char *)key, sizeof(key), "%lld", i); > ht_test.c:58:38: note: directive argument in the range [1, > 9223372036854775806] > snprintf((char *)key, sizeof(key), "%lld", i); > ^~~~~~ Casted i to unsigned int and used "%u". > -- > Ticket History: https://bugs.isc.org/Ticket/Display.html?id=46107 -- Mark Andrews, ISC 1 Seymour St., Dundas Valley, NSW 2117, Australia PHONE: +61 2 9871 4742 INTERNET: marka@isc.org
This appears to have all been committed, resolving.