cvs commit: src/sys/netsmb smb_subr.c
Christian S.J. Peron
csjp at FreeBSD.org
Mon Jan 16 09:03:22 PST 2006
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
More information about the cvs-src
mailing list