summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJared Yanovich <jaredy@cvs.openbsd.org>2005-10-19 18:27:06 +0000
committerJared Yanovich <jaredy@cvs.openbsd.org>2005-10-19 18:27:06 +0000
commitd1d3adb615ff48c3c51317982efd83f62286c2a9 (patch)
tree6721c845df3d84b4b14088bb18d156a910ce778a /lib
parent872f24f53cc3c6a96640df9fc5c0e9bc39e3247b (diff)
EFAULT corrections; ok millert and otto
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/sys/getpeername.24
-rw-r--r--lib/libc/sys/getsockname.24
-rw-r--r--lib/libc/sys/readlink.24
-rw-r--r--lib/libc/sys/rename.26
4 files changed, 13 insertions, 5 deletions
diff --git a/lib/libc/sys/getpeername.2 b/lib/libc/sys/getpeername.2
index 31ea1d3eff3..aece8a2d5d2 100644
--- a/lib/libc/sys/getpeername.2
+++ b/lib/libc/sys/getpeername.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: getpeername.2,v 1.20 2003/06/02 20:18:39 millert Exp $
+.\" $OpenBSD: getpeername.2,v 1.21 2005/10/19 18:27:05 jaredy Exp $
.\" $NetBSD: getpeername.2,v 1.6 1995/10/12 15:40:56 jtc Exp $
.\"
.\" Copyright (c) 1983, 1991, 1993
@@ -121,6 +121,8 @@ to perform the operation.
.It Bq Er EFAULT
The
.Fa name
+or
+.Fa namelen
parameter points to memory not in a valid part of the
process address space.
.El
diff --git a/lib/libc/sys/getsockname.2 b/lib/libc/sys/getsockname.2
index 7d46703f920..66c70046365 100644
--- a/lib/libc/sys/getsockname.2
+++ b/lib/libc/sys/getsockname.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: getsockname.2,v 1.22 2003/06/02 20:18:39 millert Exp $
+.\" $OpenBSD: getsockname.2,v 1.23 2005/10/19 18:27:05 jaredy Exp $
.\" $NetBSD: getsockname.2,v 1.6 1995/10/12 15:41:00 jtc Exp $
.\"
.\" Copyright (c) 1983, 1991, 1993
@@ -140,6 +140,8 @@ to perform the operation.
.It Bq Er EFAULT
The
.Fa name
+or
+.Fa namelen
parameter points to memory not in a valid part of the
process address space.
.El
diff --git a/lib/libc/sys/readlink.2 b/lib/libc/sys/readlink.2
index 4cec3f69f57..a8f006edae9 100644
--- a/lib/libc/sys/readlink.2
+++ b/lib/libc/sys/readlink.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: readlink.2,v 1.10 2003/06/02 20:18:39 millert Exp $
+.\" $OpenBSD: readlink.2,v 1.11 2005/10/19 18:27:05 jaredy Exp $
.\" $NetBSD: readlink.2,v 1.7 1995/02/27 12:35:54 cgd Exp $
.\"
.\" Copyright (c) 1983, 1991, 1993
@@ -82,6 +82,8 @@ The named file is not a symbolic link.
An I/O error occurred while reading from the file system.
.It Bq Er EFAULT
.Fa buf
+or
+.Fa path
extends outside the process's allocated address space.
.El
.Sh SEE ALSO
diff --git a/lib/libc/sys/rename.2 b/lib/libc/sys/rename.2
index d7c27887b0c..5dbf6786aeb 100644
--- a/lib/libc/sys/rename.2
+++ b/lib/libc/sys/rename.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: rename.2,v 1.11 2003/07/15 10:09:21 jmc Exp $
+.\" $OpenBSD: rename.2,v 1.12 2005/10/19 18:27:05 jaredy Exp $
.\" $NetBSD: rename.2,v 1.7 1995/02/27 12:36:15 cgd Exp $
.\"
.\" Copyright (c) 1983, 1991, 1993
@@ -155,7 +155,9 @@ An I/O error occurred while making or updating a directory entry.
The requested link requires writing in a directory on a read-only file
system.
.It Bq Er EFAULT
-.Em Path
+.Fa from
+or
+.Fa to
points outside the process's allocated address space.
.It Bq Er EINVAL
.Fa from