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

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

Dates
Created:Wed, 20 Sep 2017 06:46:48 -0400
Updated:Tue, 26 Sep 2017 05:34:38 -0400
Closed:Tue, 26 Sep 2017 05:34:37 -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: Comment zone functions related to NSEC3 processing
From: michal@isc.org
To: bind9-public@isc.org
Date: Wed, 20 Sep 2017 12:46:47 +0200
lib/dns/zone.c contains multiple functions related to NSEC3 processing: - dns_zone_addnsec3chain() - dns_zone_setnsec3param() - fixup_nsec3param() - resume_addnsec3chain() - setnsec3param() - zone_addnsec3chain() - zone_nsec3chain() The purpose of each of these functions and the relations between them are far from obvious for an untrained eye and thus they could use some comments.
Branch rt46053 adds comments to these functions and also contains a few minor tweaks which should not affect named's behavior. Please review. Feel free to tweak comments if you find them inaccurate.
On Wed Sep 20 00:49:34 2017, michal wrote: > Branch rt46053 adds comments to these functions and also contains a few > minor tweaks which should not affect named's behavior. Please review. > Feel free to tweak comments if you find them inaccurate. signatures should have been decremented in the while loop when the NSEC chain was being generated. I would revert the hex changes but if they stay the sprintf should be a snprintf + strlcat to silence stupid linker warnings about using sprintf and to take advantage of the buffer size protections. I've also add a INSIST(LOCKED_ZONE(zone)). Other than possibly reverting the hex changes it looks good to go.
To avoid code duplication, I extracted the hex-formatting code into a separate function. Please review.
From: "Mark Andrews" <marka@isc.org>
To: bind9-public@isc.org
Subject: Re: [ISC-Bugs #46053] Comment zone functions related to NSEC3 processing
Date: Fri, 22 Sep 2017 12:31:25 +1000
In message <rt-4.4.1-49211-1505979230-542.46053-4-0@isc.org>, "=?UTF-8?B?TWljaGHFgiBLxJlwaWXFhA==?= via RT" writes: > To avoid code duplication, I extracted the hex-formatting code into a > separate function. Please review. cherry-picked atomic fixes so I could build it. Pushed a fix for completeness. Looks good to go. > -- > Ticket History: https://bugs.isc.org/Ticket/Display.html?id=46053 -- Mark Andrews, ISC 1 Seymour St., Dundas Valley, NSW 2117, Australia PHONE: +61 2 9871 4742 INTERNET: marka@isc.org
4736. [cleanup] (a) Added comments to NSEC3-related functions in lib/dns/zone.c. (b) Refactored NSEC3 salt formatting code. (c) Minor tweaks to lock and result handling. [RT #46053] 9.9.12, 9.10.7, 9.11.3, 9.12.0