Date: Sun, 3 Dec 2000 17:45:58 -0800 (PST) From: John Polstra <jdp@FreeBSD.org> To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/lib/libc/gen setproctitle.c Message-ID: <200012040145.eB41jw809701@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
jdp 2000/12/03 17:45:58 PST Modified files: lib/libc/gen setproctitle.c Log: When recording the original arguments, stop short if we encounter a NULL argument. Some programs change the contents of the argv array, typically to remove some special arguments. They shorten argv by storing a NULL where an argument pointer used to be. Such programs core dumped if they called setproctitle(), because it would try to apply strlen() to a NULL pointer. Revision Changes Path 1.14 +11 -1 src/lib/libc/gen/setproctitle.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200012040145.eB41jw809701>