mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-31 19:26:42 +00:00
Don't interpret SIG_DFL and SIG_IGN as real handler address.
svn path=/trunk/; revision=17596
This commit is contained in:
@@ -61,7 +61,7 @@ __p_sig_fn_t signal(int sig, __p_sig_fn_t func)
|
||||
}
|
||||
|
||||
// check with IsBadCodePtr
|
||||
if ( func < (__p_sig_fn_t)4096 )
|
||||
if ( func < (__p_sig_fn_t)4096 && func != SIG_DFL && func != SIG_IGN)
|
||||
{
|
||||
__set_errno(EINVAL);
|
||||
return SIG_ERR;
|
||||
|
||||
Reference in New Issue
Block a user