mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
Don't interpret SIG_DFL and SIG_IGN as real handler address.
svn path=/trunk/; revision=17596
This commit is contained in:
parent
bb3b1de38c
commit
3e0e6887f8
1 changed files with 1 additions and 1 deletions
|
@ -61,7 +61,7 @@ __p_sig_fn_t signal(int sig, __p_sig_fn_t func)
|
||||||
}
|
}
|
||||||
|
|
||||||
// check with IsBadCodePtr
|
// 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);
|
__set_errno(EINVAL);
|
||||||
return SIG_ERR;
|
return SIG_ERR;
|
||||||
|
|
Loading…
Reference in a new issue