Subject: CVS commit: basesrc/lib/libc/net
To: None <source-changes@netbsd.org>
From: Jun-ichiro itojun Hagino <itojun@netbsd.org>
List: source-changes
Date: 06/26/2002 09:00:08
Module Name:	basesrc
Committed By:	itojun
Date:		Wed Jun 26 06:00:08 UTC 2002

Modified Files:
	basesrc/lib/libc/net: gethnamaddr.c getnetnamadr.c

Log Message:
avoid remote buffer overrun on hostbuf[].  From: Joost Pol <joost@pine.nl>

correct bad practice in the code - it uses two changing variables
to manage buffer (buf and buflen).  we eliminate buflen and use
fixed point (ep) as the ending pointer.

this fix is critical.


To generate a diff of this commit:
cvs rdiff -r1.45 -r1.46 basesrc/lib/libc/net/gethnamaddr.c
cvs rdiff -r1.21 -r1.22 basesrc/lib/libc/net/getnetnamadr.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.