Alexandre Julliard : kthread: Don't make the stack executable by default.

Alexandre Julliard julliard at wine.codeweavers.com
Wed Dec 6 05:48:55 CST 2006


Module: wine
Branch: master
Commit: 338fc52491b32707e3d57447582fa877b8b0917d
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=338fc52491b32707e3d57447582fa877b8b0917d

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Tue Dec  5 15:42:53 2006 +0100

kthread: Don't make the stack executable by default.

---

 loader/kthread.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/loader/kthread.c b/loader/kthread.c
index 9c3e0ed..91f00e4 100644
--- a/loader/kthread.c
+++ b/loader/kthread.c
@@ -237,8 +237,7 @@ static int create_thread( struct wine_pt
 {
     if (!info->stack_base)
     {
-        info->stack_base = wine_anon_mmap( NULL, info->stack_size,
-                                           PROT_READ | PROT_WRITE | PROT_EXEC, 0 );
+        info->stack_base = wine_anon_mmap( NULL, info->stack_size, PROT_READ | PROT_WRITE, 0 );
         if (info->stack_base == (void *)-1) return -1;
     }
 #ifdef HAVE_CLONE




More information about the wine-cvs mailing list