Subject: CVS commit: [netbsd-1-6] basesrc/lib/libc/net
To: None <source-changes@netbsd.org>
From: Luke Mewburn <lukem@netbsd.org>
List: source-changes
Date: 06/26/2002 14:11:16
Module Name: basesrc
Committed By: lukem
Date: Wed Jun 26 11:11:16 UTC 2002
Modified Files:
basesrc/lib/libc/net [netbsd-1-6]: gethnamaddr.c
Log Message:
Pull up revision 1.46 (requested by itojun in ticket #371):
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.42.2.1 -r1.42.2.2 basesrc/lib/libc/net/gethnamaddr.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.