Report information
The Basics
Id:
46334
Status:
new
Priority:
Low/Low
Queue:

People
Owner:
Nobody in particular
Requestors:
Stephen Morris <stephen@isc.org>(email delivery suspended)
Cc:
AdminCc:

BugTracker
Version Fixed:
(no value)
Version Found:
9.12.0
Versions Affected:
(no value)
Versions Planned:
(no value)
Priority:
P3 Low
Severity:
S3 Low
CVSS Score:
(no value)
CVE ID:
(no value)
Component:
BIND Server
Area:
test

Dates
Created:Thu, 19 Oct 2017 10:58:28 -0400
Updated:Thu, 19 Oct 2017 10:58:29 -0400
Closed:Not set



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.

To: bind9-public@isc.org
Date: Thu, 19 Oct 2017 14:58:28 +0000
From: stephen@isc.org
Subject: Extend unit tests for isc_inet_pton/isc_inet_ntop
A follow-on from #46171 (add unit test for isc_inet_pton), the unit tests for these functions should be extended to check they detect invalid input and return the correct error codes. Conditions that should be checked are: inet_pton * Invalid address family * Invalid address for family (e.g. AF_INET with a V6 address) * Invalid address in correct format (e.g. 1.2.3.456) * NULL passed as address argument * Empty address argument * Invalid address argument inet_ntop * Buffer too small to accept result