]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Correct an additional off-by-one bug and buffer overflow. A malloc()
authorpeter <peter@FreeBSD.org>
Fri, 14 Jul 2000 00:29:00 +0000 (00:29 +0000)
committerpeter <peter@FreeBSD.org>
Fri, 14 Jul 2000 00:29:00 +0000 (00:29 +0000)
commit758f41c92dac66f40115e5639b1432a55535f653
treeb474acddc3cfbb0417b893a66e463793ff8138d4
parent092cc1f8f99b873b28e3af4c33600826216f184d
Correct an additional off-by-one bug and buffer overflow.  A malloc()
was being made one byte too short, and the string assembled in it was not
null terminated.  The string was passed to regcomp() so it never matched
anything in /etc/usbd.conf.  This is the cause of usbd not working for the
last few days..  The new malloc.conf default of AJ triggered this.
usr.sbin/usbd/usbd.c