Bug 1738 - host dumps core on `host -l -t any mvhi.com ns.uu.net'
host dumps core on `host -l -t any mvhi.com ns.uu.net'
Status: CLOSED CURRENTRELEASE
Product: Red Hat Linux
Classification: Retired
Component: bind (Show other bugs)
5.2
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Bill Nottingham
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 1999-03-24 10:18 EST by David Woodhouse
Modified: 2014-03-16 22:09 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 1999-03-31 10:52:53 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:


Attachments (Terms of Use)

  None (edit)
Description David Woodhouse 1999-03-24 10:18:21 EST
devel2 /homes/dwmw2 $ host -l -t any mvhi.com ns.uu.net
Using domain server:
Name: ns.uu.net
Address: 137.39.1.3
Aliases:

Server failed: Premature end of data
Segmentation fault (core dumped)

If you can't reproduce it, let me know and I'll install the
sources and trace it further.
Comment 1 Bill Nottingham 1999-03-24 11:58:59 EST
quick fix is the following patch:
--- bind-8.2/src/bin/host/host.c.error	Wed Mar 24 11:43:19 1999
+++ bind-8.2/src/bin/host/host.c	Wed Mar 24 11:56:19 1999
@@ -1310,6 +1314,7 @@

 		amtToRead = len;
 		cp = buf.qb2;
+	        if (amtToRead > NS_PACKETSZ) amtToRead=NS_PACKETSZ;
 		while (amtToRead > 0 &&
 		       (numRead = read(sockFD, cp, amtToRead)) > 0) {
 			cp += numRead;
Comment 2 Preston Brown 1999-03-30 16:55:59 EST
Bill, did you apply the quick and dirty fix?
Comment 3 Bill Nottingham 1999-03-31 10:52:59 EST
fixed in bind-8.2-6

Note You need to log in before you can comment on or make changes to this bug.