Date: Fri, 20 Mar 2009 11:08:57 +0000 (UTC) From: Konstantin Belousov <kib@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/sys/kern vfs_cache.c Message-ID: <200903201109.n2KB98c9049168@repoman.freebsd.org>
index | next in thread | raw e-mail
kib 2009-03-20 11:08:57 UTC
FreeBSD src repository
Modified files:
sys/kern vfs_cache.c
Log:
SVN rev 190145 on 2009-03-20 11:08:57Z by kib
Do not underflow the buffer and then report the problem. Check for the
condition before the buffer write.
Also, since buflen is unsigned, previous check was ignored.
Reviewed by: marcus
Tested by: pho
Revision Changes Path
1.143 +6 -6 src/sys/kern/vfs_cache.c
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200903201109.n2KB98c9049168>
