diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1995-11-30 22:52:06 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1995-11-30 22:52:06 +0000 |
commit | f8d30de5ce34d3aa427879c992855af75698f9c6 (patch) | |
tree | 29557905e5207b9fa7aa093245b1491380348ed8 | |
parent | da563911f75aa7905fc1ea4103641b1b20c67cf0 (diff) |
prevent access to page 0 of virtual space
-rw-r--r-- | sys/arch/mvme68k/mvme68k/mem.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/arch/mvme68k/mvme68k/mem.c b/sys/arch/mvme68k/mvme68k/mem.c index 4330f7a459f..ad1173a50b6 100644 --- a/sys/arch/mvme68k/mvme68k/mem.c +++ b/sys/arch/mvme68k/mvme68k/mem.c @@ -1,4 +1,4 @@ -/* $Id: mem.c,v 1.2 1995/11/07 08:50:22 deraadt Exp $ */ +/* $Id: mem.c,v 1.3 1995/11/30 22:52:05 deraadt Exp $ */ /* * Copyright (c) 1995 Theo de Raadt @@ -169,6 +169,8 @@ mmrw(dev, uio, flags) if (!kernacc((caddr_t)v, c, uio->uio_rw == UIO_READ ? B_READ : B_WRITE)) return (EFAULT); + if (v < NBPG) + return (EFAULT); error = uiomove((caddr_t)v, c, uio); continue; |