Don't trust the user, and enforce the iovec limit.

Also check for negative positions smaller -1
(as -1 means using current address).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22031 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Marcus Overhagen
2007-08-21 19:07:10 +00:00
parent e9b8c538b0
commit 20c4c9e77e
2 changed files with 37 additions and 5 deletions
+1 -1
View File
@@ -27,7 +27,7 @@
#define ARG_MAX (32768)
#define ATEXIT_MAX (32) /* XXXdbg */
#define CHILD_MAX (1024)
#define IOV_MAX (256) /* really there is no limit */
#define IOV_MAX (1024)
#define FILESIZEBITS (64)
#define LINK_MAX (1)
#define LOGIN_NAME_MAX (32) /* XXXdbg */