artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
198cee9
)
prevent access to page 0 of virtual space
author
deraadt
<deraadt@openbsd.org>
Thu, 30 Nov 1995 22:52:05 +0000
(22:52 +0000)
committer
deraadt
<deraadt@openbsd.org>
Thu, 30 Nov 1995 22:52:05 +0000
(22:52 +0000)
sys/arch/mvme68k/mvme68k/mem.c
patch
|
blob
|
history
diff --git
a/sys/arch/mvme68k/mvme68k/mem.c
b/sys/arch/mvme68k/mvme68k/mem.c
index
4330f7a
..
ad1173a
100644
(file)
--- 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;