]> git.pld-linux.org Git - packages/ElectricFence.git/commitdiff
- ElectricFence patches. ElectricFence-2_1-1
authorkloczek <kloczek@pld-linux.org>
Sun, 11 Apr 1999 15:08:56 +0000 (15:08 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    ElectricFence-longjmp.patch -> 1.1

ElectricFence-longjmp.patch [new file with mode: 0644]

diff --git a/ElectricFence-longjmp.patch b/ElectricFence-longjmp.patch
new file mode 100644 (file)
index 0000000..3df3073
--- /dev/null
@@ -0,0 +1,27 @@
+--- ElectricFence-2.0.5/eftest.c.ewt   Tue Jun  2 09:25:10 1998
++++ ElectricFence-2.0.5/eftest.c       Tue Jun  2 09:24:58 1998
+@@ -24,7 +24,7 @@
+ extern int    EF_PROTECT_BELOW;
+ extern int    EF_ALIGNMENT;
+-static jmp_buf        env;
++static sigjmp_buf     env;
+ /*
+  * There is still too little standardization of the arguments and return
+@@ -40,13 +40,13 @@
+ )
+  {
+       signal(PAGE_PROTECTION_VIOLATED_SIGNAL, SIG_DFL);
+-      longjmp(env, 1);
++      siglongjmp(env, 1);
+ }
+ static int
+ gotSegmentationFault(int (*test)(void))
+ {
+-      if ( setjmp(env) == 0 ) {
++      if ( sigsetjmp(env, 1) == 0 ) {
+               int                     status;
+               signal(PAGE_PROTECTION_VIOLATED_SIGNAL
This page took 0.082457 seconds and 4 git commands to generate.