Date: Tue, 1 Jul 2003 02:45:35 -0700 (PDT) From: Alfred Perlstein <alfred@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/lib/libc/gen setproctitle.c Message-ID: <200307010945.h619jZnA009190@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200307010945.h619jZnA009190>