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:25
Module Name: basesrc
Committed By: lukem
Date: Wed Jun 26 11:11:25 UTC 2002
Modified Files:
basesrc/lib/libc/net [netbsd-1-6]: getnetnamadr.c
Log Message:
Pull up revision 1.22 (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.20 -r1.20.4.1 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.