Bug 1738

Summary: host dumps core on `host -l -t any mvhi.com ns.uu.net'
Product: [Retired] Red Hat Linux Reporter: David Woodhouse <dwmw2>
Component: bindAssignee: Bill Nottingham <notting>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 5.2CC: rvokal
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 1999-03-31 15:52:53 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description David Woodhouse 1999-03-24 15:18:21 UTC
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 16:58:59 UTC
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 21:55:59 UTC
Bill, did you apply the quick and dirty fix?

Comment 3 Bill Nottingham 1999-03-31 15:52:59 UTC
fixed in bind-8.2-6