NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

PR/48475 CVS commit: [netbsd-6] src/lib/libc/resolv



The following reply was made to PR lib/48475; it has been noted by GNATS.

From: "Soren Jacobsen" <snj%netbsd.org@localhost>
To: gnats-bugs%gnats.NetBSD.org@localhost
Cc: 
Subject: PR/48475 CVS commit: [netbsd-6] src/lib/libc/resolv
Date: Tue, 2 Dec 2014 21:56:37 +0000

 Module Name:	src
 Committed By:	snj
 Date:		Tue Dec  2 21:56:37 UTC 2014
 
 Modified Files:
 	src/lib/libc/resolv [netbsd-6]: res_mkquery.c
 
 Log Message:
 Pull up following revision(s) (requested by pettai in ticket #1191):
 	lib/libc/resolv/res_mkquery.c: revision 1.14
 PR/48475: YAMAGUCHI Takanori: EDNS option broken with unbound. struct
 querybuf in net/gethnamaddr.c defines MAXPACKET to 64K. This in turn
 gets passed down until it reached res_nopt(..., answer, anslen), where
 the size of the buffer must fit in 16 bits. Unfortunately we end up
 being one more than the max so we end up sending a 0 as the size and
 unbound does not like that. Instead we clip now to 64K - 1, and
 everyone is happy.
 
 
 To generate a diff of this commit:
 cvs rdiff -u -r1.12 -r1.12.8.1 src/lib/libc/resolv/res_mkquery.c
 
 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.
 


Home | Main Index | Thread Index | Old Index