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:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user