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

People
Owner:
Nobody in particular
Requestors:
Cc:
AdminCc:

BugTracker
Version Fixed:
9.8.9, 9.9.7, 9.9.7-S1, 9.10.2, 9.11.0
Version Found:
(no value)
Versions Affected:
(no value)
Versions Planned:
(no value)
Priority:
(no value)
Severity:
S2 Normal
CVSS Score:
(no value)
CVE ID:
(no value)
Component:
(no value)
Area:
bug

Dates
Created:Mon, 15 Sep 2014 11:41:29 -0400
Updated:Thu, 03 Aug 2017 21:51:30 -0400
Closed:Wed, 22 Oct 2014 01:52:40 -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.

Subject: dns_name_fullcompare() doesn't fill nlabelsp correctly if names are equal
Date: Mon, 15 Sep 2014 17:41:21 +0200
To: bind9-bugs@isc.org
From: Petr Spacek <pspacek@redhat.com>
Hello, I just found out that dns_name_fullcompare() description is not correct or the function contains a bug. name.h promises this: dns_namereln_t dns_name_fullcompare(const dns_name_t *name1, const dns_name_t *name2, int *orderp, unsigned int *nlabelsp); <snip> * Ensures: * *\li *orderp is < 0 if name1 < name2, 0 if name1 = name2, > 0 if * name1 > name2. * *\li *nlabelsp is the number of common significant labels. The promise "nlabelsp is the number of common significant labels" is not fulfilled in this case: if (name1 == name2) { *orderp = 0; return (dns_namereln_equal); } Have a nice day! -- Petr Spacek @ Red Hat