Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern assert that uio passed to uiomove() has valid uio_i...
details: https://anonhg.NetBSD.org/src/rev/27728f99cc0c
branches: trunk
changeset: 551947:27728f99cc0c
user: yamt <yamt%NetBSD.org@localhost>
date: Sun Sep 14 11:12:14 2003 +0000
description:
assert that uio passed to uiomove() has valid uio_iovcnt.
diffstat:
sys/kern/kern_subr.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (26 lines):
diff -r fe870855fe18 -r 27728f99cc0c sys/kern/kern_subr.c
--- a/sys/kern/kern_subr.c Sun Sep 14 11:09:48 2003 +0000
+++ b/sys/kern/kern_subr.c Sun Sep 14 11:12:14 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kern_subr.c,v 1.104 2003/09/10 10:55:50 yamt Exp $ */
+/* $NetBSD: kern_subr.c,v 1.105 2003/09/14 11:12:14 yamt Exp $ */
/*-
* Copyright (c) 1997, 1998, 1999, 2002 The NetBSD Foundation, Inc.
@@ -86,7 +86,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_subr.c,v 1.104 2003/09/10 10:55:50 yamt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_subr.c,v 1.105 2003/09/14 11:12:14 yamt Exp $");
#include "opt_ddb.h"
#include "opt_md.h"
@@ -155,6 +155,7 @@
iov = uio->uio_iov;
cnt = iov->iov_len;
if (cnt == 0) {
+ KASSERT(uio->uio_iovcnt > 0);
uio->uio_iov++;
uio->uio_iovcnt--;
continue;
Home |
Main Index |
Thread Index |
Old Index