Date: Thu, 11 Dec 2008 01:04:25 +0000 (UTC) From: "Bjoern A. Zeeb" <bz@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/sys/kern kern_jail.c src/usr.sbin/jexec jexec.c src/usr.sbin/jls jls.c Message-ID: <200812110112.mBB1CEij073673@repoman.freebsd.org>
index | next in thread | raw e-mail
bz 2008-12-11 01:04:25 UTC
FreeBSD src repository
Modified files:
sys/kern kern_jail.c
usr.sbin/jexec jexec.c
usr.sbin/jls jls.c
Log:
SVN rev 185899 on 2008-12-11 01:04:25Z by bz
Correctly check the number of prison states to not access anything
outside the prison_states array.
When checking if there is a name configured for the prison, check the
first character to not be '\0' instead of checking if the char array
is present, which it always is. Note, that this is different for the
*jailname in the syscall.
Found with: Coverity Prevent(tm)
CID: 4156, 4155
MFC after: 4 weeks (just that I get the mail)
Revision Changes Path
1.88 +2 -2 src/sys/kern/kern_jail.c
1.9 +2 -2 src/usr.sbin/jexec/jexec.c
1.7 +2 -2 src/usr.sbin/jls/jls.c
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200812110112.mBB1CEij073673>
