Date: Mon, 16 Jan 2006 17:03:21 +0000 (UTC) From: "Christian S.J. Peron" <csjp@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/netsmb smb_subr.c Message-ID: <200601161703.k0GH3LTP011187@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
csjp 2006-01-16 17:03:21 UTC FreeBSD src repository Modified files: sys/netsmb smb_subr.c Log: Although we check the return value of copyin(9) while determaining how long the string is in userspace, afterwards we call malloc(M_WAITOK), which could sleep for an unknown amount of time. Check the return value of copyin(9) just to be sure that nothing has changed during that time. Found with: Coverity Prevent (tm) MFC after: 1 week Revision Changes Path 1.20 +6 -2 src/sys/netsmb/smb_subr.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200601161703.k0GH3LTP011187>