Skip to content
Snippets Groups Projects
Commit 174f556d authored by wlott's avatar wlott
Browse files

Whenever we allocate a chunk of memory, set the protections to include

VM_PROT_EXECUTE so that we can execute code on it.
parent 018005e4
No related branches found
No related tags found
No related merge requests found
/*
* $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/ldb/Attic/mach-os.c,v 1.3 1991/10/22 18:38:11 wlott Exp $
* $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/ldb/Attic/mach-os.c,v 1.4 1992/03/02 04:10:36 wlott Exp $
*
* OS-dependent routines. This file (along with os.h) exports an
* OS-independent interface to the operating system VM facilities.
......@@ -49,6 +49,9 @@ vm_size_t len;
segments = -1;
vm_protect(task_self(), addr, len, TRUE,
VM_PROT_READ|VM_PROT_WRITE|VM_PROT_EXECUTE);
return addr;
}
......@@ -88,6 +91,9 @@ vm_size_t len;
segments = -1;
vm_protect(task_self(), addr, len, TRUE,
VM_PROT_READ|VM_PROT_WRITE|VM_PROT_EXECUTE);
return addr;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment