Report information
The Basics
Id:
28194
Status:
resolved
Users:
cathya: 5 minutes
each: -10 minutes
Priority:
Medium/Medium
Queue:

People
Requestors:
Cc:
AdminCc:

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:
P2 Normal
Severity:
S2 Normal
CVSS Score:
(no value)
CVE ID:
(no value)
Component:
(no value)
Area:
bug

Dates
Created:Wed, 29 Feb 2012 11:11:55 -0500
Updated:Thu, 17 Aug 2017 03:25:17 -0400
Closed:Thu, 17 Aug 2017 03:25:17 -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: Abnormal exit in nsupdate when missing a label
Date: Wed, 29 Feb 2012 17:11:18 +0100
To: bind9-bugs@isc.org
From: Shane Kerr <shane@isc.org>
Hello, I was using nsupdate and it crashed on me: shane@mercury:~$ nsupdate > update delete carbon.time-travellers.nl.eu.org. 3600 IN AAAA 2a02:2770::21a:4aff:fea3:eeaa > update delete carbon.time-travellers.nl.eu.org. 3600 IN A 46.19.37.141 > update add c..time-travellers.nl.eu.org. 3600 IN AAAA 2a02:2770::21a:4aff:fea3:eeaa dns_name_fromtext: empty label A typo should not cause the program to exit. -- Shane
On Wed Feb 29 16:11:55 2012, shane@isc.org wrote:
> Hello,
>
> I was using nsupdate and it crashed on me:
>
> shane@mercury:~$ nsupdate
> > update delete carbon.time-travellers.nl.eu.org. 3600 IN AAAA
> 2a02:2770::21a:4aff:fea3:eeaa
> > update delete carbon.time-travellers.nl.eu.org. 3600 IN A
> 46.19.37.141
> > update add c..time-travellers.nl.eu.org. 3600 IN AAAA
> 2a02:2770::21a:4aff:fea3:eeaa
> dns_name_fromtext: empty label
>
> A typo should not cause the program to exit.
>
> --
> Shane
>

Version?


I don't see any test cases for this error handling.
On Sun Jun 25 14:30:32 2017, marka wrote: > I don't see any test cases for this error handling. Additionally there is a case for continuing to fail in non-iteractive mode. We may want to add a interactive mode flag to facilite testing. We may also want to add a "fail on error" flag (c.f. "sh -e") so that errors in programs feeding nsupdate are easily detected.
Note 45417 also updates get_addresses prototype.
Added system tests, writing which only became possible after adding a -i command line switch forcing interactive mode. nsupdate already bails on error in non-interactive mode, so no further command line switches were added. rt28194 was rebased as agreed with Mark on Jabber back in June, due to conflicting changes to bin/nsupdate/nsupdate.c and the nsupdate system test which were merged in the meantime. Please review.
On Tue Aug 15 22:21:23 2017, michal wrote: > Added system tests, writing which only became possible after adding a -i > command line switch forcing interactive mode. nsupdate already bails on > error in non-interactive mode, so no further command line switches were > added. > > rt28194 was rebased as agreed with Mark on Jabber back in June, due to > conflicting changes to bin/nsupdate/nsupdate.c and the nsupdate system > test which were merged in the meantime. > > Please review. looks fine
4683. [bug] Prevent nsupdate from immediately exiting on invalid user input in interactive mode. [RT #28194] 9.9.12, 9.10.7, 9.11.3, 9.12.0