pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/py-cffi/patches Handle PaX/MPROTECT



details:   https://anonhg.NetBSD.org/pkgsrc/rev/ef4ce0e51c15
branches:  trunk
changeset: 353018:ef4ce0e51c15
user:      christos <christos%pkgsrc.org@localhost>
date:      Thu Sep 22 02:59:36 2016 +0000

description:
Handle PaX/MPROTECT

diffstat:

 devel/py-cffi/patches/patch-c_malloc__closure.h |  15 +++++++++++++++
 1 files changed, 15 insertions(+), 0 deletions(-)

diffs (19 lines):

diff -r f2a2ba7151db -r ef4ce0e51c15 devel/py-cffi/patches/patch-c_malloc__closure.h
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/py-cffi/patches/patch-c_malloc__closure.h   Thu Sep 22 02:59:36 2016 +0000
@@ -0,0 +1,15 @@
+$ NetBSD$
+
+Handle PaX/MPROTECT
+
+--- c/malloc_closure.h.orig    2016-09-21 22:53:05.889258675 -0400
++++ c/malloc_closure.h 2016-09-21 22:53:47.057812777 -0400
+@@ -57,6 +57,8 @@
+ 
+ #define is_emutramp_enabled() (emutramp_enabled >= 0 ? emutramp_enabled \
+         : (emutramp_enabled = emutramp_enabled_check ()))
++#elif defined(__NetBSD__)
++#define is_emutramp_enabled() 1       /* We have PaX MPROTECT, no point in checking if it is enabled! */
+ #else
+ #define is_emutramp_enabled() 0
+ #endif



Home | Main Index | Thread Index | Old Index