cvs commit: src/lib/libc/gen setproctitle.c

[ Available lists | Index of cvs-all | Month of Jul 2003 | Week of 1 Jul 2003 | Raw email | View thread | Wrap long lines | Reply | Tag ]
From
Alfred Perlstein <alfred@FreeBSD.org>
Date
1 Jul 2003 02:45:36
Subject
cvs commit: src/lib/libc/gen setproctitle.c
Message-ID
200307010945.h619jZnA009190@repoman.freebsd.org


[ Hide this part ]
alfred      2003/07/01 02:45:35 PDT

FreeBSD src repository

Modified files:
lib/libc/gen setproctitle.c
Log:
Don't segfault if setproctitle(3) is called with NULL initially.
The old buffer was not being initialized and a later str*() op on
it would cause a crash if it wasn't initialized by a previous
call to setproctitle(3) with an actual string.

Noticed by: Ashley Penney <ashp@unloved.org>

Revision Changes Path
1.18 +1 -0 src/lib/libc/gen/setproctitle.c


Elapsed time: 0.050 seconds