cvs commit: src/usr.sbin/pw

Matthew Dillon dillon at apollo.backplane.com
Wed Dec 1 11:16:55 PST 2004


:joerg       2004/11/30 12:12:21 PST
:
:DragonFly src repository
:
:  Modified files:
:    usr.sbin/pw          pw_user.c 
:  Log:
:  Switch a strncpy into a strlcpy. I'm not sure why this triggers propolice,
:  the use seems to be correct.
:  
:  Revision  Changes    Path
:  1.4       +1 -2      src/usr.sbin/pw/pw_user.c
:
:http://www.dragonflybsd.org/cvsweb/src/usr.sbin/pw/pw_user.c.diff?r1=1.3&r2=1.4&f=u

    It's probably some other buffer overrun in the same procedure.
    propolice reorders the declarations so it isn't necessarily
    the on you fixed.

    There are also a whole lot of sprintf()'s in there that could be
    changed to snprintf().  That code looks scary.

					-Matt
					Matthew Dillon 
					<dillon at xxxxxxxxxxxxx>





More information about the Commits mailing list