diff options
author | Christopher Faylor <me@cgf.cx> | 2001-10-20 05:08:21 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2001-10-20 05:08:21 +0000 |
commit | 6fdd213161e7795b55ac1c0a4f70d02d13f53f82 (patch) | |
tree | 5c1a107449d272712c0904114c9ac0181bfac07c /winsup/cygwin/winsup.h | |
parent | 5318c4983306850bffa748b4feaa87f7c6d666bb (diff) | |
download | cygnal-6fdd213161e7795b55ac1c0a4f70d02d13f53f82.tar.gz cygnal-6fdd213161e7795b55ac1c0a4f70d02d13f53f82.tar.bz2 cygnal-6fdd213161e7795b55ac1c0a4f70d02d13f53f82.zip |
* miscfuncs.cc (+__check_invalid_read_ptr_errno): New function.
* syscalls.c (_write): Validate that write buffer is accessible for reading,
not writing.
* winsup.h: Declare new function, increase regparmization of check_* functions.
Diffstat (limited to 'winsup/cygwin/winsup.h')
-rw-r--r-- | winsup/cygwin/winsup.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/winsup/cygwin/winsup.h b/winsup/cygwin/winsup.h index f244891b6..3fbe9d32f 100644 --- a/winsup/cygwin/winsup.h +++ b/winsup/cygwin/winsup.h @@ -191,8 +191,9 @@ void set_console_handler (); int __stdcall check_null_empty_str (const char *name) __attribute__ ((regparm(1))); int __stdcall check_null_empty_str_errno (const char *name) __attribute__ ((regparm(1))); -int __stdcall __check_null_invalid_struct (const void *s, unsigned sz) __attribute__ ((regparm(1))); -int __stdcall __check_null_invalid_struct_errno (const void *s, unsigned sz) __attribute__ ((regparm(1))); +int __stdcall __check_null_invalid_struct (const void *s, unsigned sz) __attribute__ ((regparm(2))); +int __stdcall __check_null_invalid_struct_errno (const void *s, unsigned sz) __attribute__ ((regparm(2))); +int __stdcall __check_invalid_read_ptr_errno (const void *s, unsigned sz) __attribute__ ((regparm(2))); #define check_null_invalid_struct(s) \ __check_null_invalid ((s), sizeof (*(s))) |