Report information
The Basics
Id:
46471
Status:
resolved
Priority:
Low/Low
Queue:

People
Cc:
AdminCc:

BugTracker
Version Fixed:
9.9.12, 9.9.12(sub), 9.10.7, 9.10.7(sub), 9.11.3, 9.12.0
Version Found:
(no value)
Versions Affected:
(no value)
Versions Planned:
(no value)
Priority:
P2 Normal
Severity:
S3 Low
CVSS Score:
(no value)
CVE ID:
(no value)
Component:
(no value)
Area:
libisc

Dates
Created:Fri, 03 Nov 2017 09:05:18 -0400
Updated:Thu, 23 Nov 2017 01:05:40 -0500
Closed:Thu, 23 Nov 2017 01:05:40 -0500



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.

Subject: Warning on compile of iOS for dig
Date: Fri, 03 Nov 2017 13:05:17 +0000
To: bind9-public@isc.org
From: ray@isc.org
This macro from lib/isc/include/isc/buffer.h causes a warning on the assignment of _length because `strlen()` returns `size_t`, not `unsigned int`. #define ISC__BUFFER_PUTSTR(_b, _source) \ do { \ unsigned int _length; \ unsigned char *_cp; \ _length = strlen(_source); \ if (ISC_UNLIKELY((_b)->autore)) { \ isc_buffer_t *_tmp = _b; \ REQUIRE(isc_buffer_reserve(&_tmp, _length) \ == ISC_R_SUCCESS); \ } \ REQUIRE(isc_buffer_availablelength(_b) >= (unsigned int) _length); \ _cp = isc_buffer_used(_b); \ memmove(_cp, (_source), _length); \ (_b)->used += (_length); \ } while (0)
looks fine
silence compiler warning [RT #46471]. No CHANGES.