]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Add code to make sure that we don't overflow the buffer that we copy
authorimp <imp@FreeBSD.org>
Fri, 18 Jul 1997 18:52:53 +0000 (18:52 +0000)
committerimp <imp@FreeBSD.org>
Fri, 18 Jul 1997 18:52:53 +0000 (18:52 +0000)
commitdd1f7b6438fd6a472eabb84d7053e05dfb869343
tree8187881888a16c26593edae565cf9afc35c03d9f
parent78429cea51d55c08251f478caf95209a3e1d6758
Add code to make sure that we don't overflow the buffer that we copy
the hostname into.  In theory the bind library should do this, but
in practice the limites between system defines and bind defines make
an attack using this vector possible.  These patches have been in
use on my systems for three months now, so I am fairly confident about
them.  I plan on commiting this to 2.2 and 2.1 in the near future,
as well as many other patches of this nature.
usr.sbin/lpr/common_source/common.c