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

Alfred Perlstein alfred at FreeBSD.org
Tue Jul 1 02:45:37 PDT 2003


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 at unloved.org>
  
  Revision  Changes    Path
  1.18      +1 -0      src/lib/libc/gen/setproctitle.c


More information about the cvs-src mailing list