Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 13 Dec 1996 16:21:17 +1100
From:      Bruce Evans <bde@zeta.org.au>
To:        cvs-all@freefall.freebsd.org, CVS-committers@freefall.freebsd.org, cvs-lib@freefall.freebsd.org, joerg@freefall.freebsd.org
Subject:   Re: cvs commit:  src/lib/libc/net ascii2addr.c
Message-ID:  <199612130521.QAA20872@godzilla.zeta.org.au>

index | next in thread | raw e-mail

>  Modified:    lib/libc/net  ascii2addr.c
>  Log:
>  Fix an embarassing and rather obscure incarnation of an uninitialized
>  local variable use.
>  
>  Found by:	actually using ascii2addr() :-/

This introduces an embarassing and rather obscure incarnation of an
uninitialized local variable use: now strbuf[15] is uninitialized.
strncpy(), unlike strncat(), does not null terminate the target string
if the source string together with its null terminator is longer than
the specified length.

Bruce


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199612130521.QAA20872>