[ros-diffs] [hbirr] 17596: Don't interpret SIG_DFL and SIG_IGN as real handler address.

hbirr at svn.reactos.com hbirr at svn.reactos.com
Tue Aug 30 18:25:00 CEST 2005


Don't interpret SIG_DFL and SIG_IGN as real handler address.
Modified: trunk/reactos/lib/crt/signal/signal.c
  _____  

Modified: trunk/reactos/lib/crt/signal/signal.c
--- trunk/reactos/lib/crt/signal/signal.c	2005-08-29 22:23:55 UTC
(rev 17595)
+++ trunk/reactos/lib/crt/signal/signal.c	2005-08-30 16:24:55 UTC
(rev 17596)
@@ -61,7 +61,7 @@

    }
 
    // 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;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.reactos.org/pipermail/ros-diffs/attachments/20050830/1833de11/attachment.html


More information about the Ros-diffs mailing list