[Midnightbsd-cvs] src [8759] trunk/sys/fs/nfs/nfs_commonsubs.c: assert that the mbuf in the chain has a sane length.
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Sun Sep 25 22:40:48 EDT 2016
Revision: 8759
http://svnweb.midnightbsd.org/src/?rev=8759
Author: laffer1
Date: 2016-09-25 22:40:48 -0400 (Sun, 25 Sep 2016)
Log Message:
-----------
assert that the mbuf in the chain has a sane length.
Modified Paths:
--------------
trunk/sys/fs/nfs/nfs_commonsubs.c
Modified: trunk/sys/fs/nfs/nfs_commonsubs.c
===================================================================
--- trunk/sys/fs/nfs/nfs_commonsubs.c 2016-09-26 02:39:51 UTC (rev 8758)
+++ trunk/sys/fs/nfs/nfs_commonsubs.c 2016-09-26 02:40:48 UTC (rev 8759)
@@ -199,6 +199,7 @@
}
mbufcp = NFSMTOD(mp, caddr_t);
len = mbuf_len(mp);
+ KASSERT(len > 0, ("len %d", len));
}
xfer = (left > len) ? len : left;
#ifdef notdef
More information about the Midnightbsd-cvs
mailing list