Date: Fri, 25 Feb 2005 08:42:04 +0000 (UTC) From: Maxim Sobolev <sobomax@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/kern imgact_shell.c Message-ID: <200502250842.j1P8g47v041334@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
sobomax 2005-02-25 08:42:04 UTC FreeBSD src repository Modified files: sys/kern imgact_shell.c Log: Try harder to not exceed MAXSHELLCMDLEN when parsing first line of shell script. Otherwise it's possible to panic kernel by constructing a shell script with first line not ending in '\n'. Also, treat '\0' as line terminating character, which may me useful in some situations. Submitted by: gad Revision Changes Path 1.31 +9 -7 src/sys/kern/imgact_shell.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200502250842.j1P8g47v041334>