comparison dyncallback/dyncall_alloc_wx_mmap.c @ 252:047d2829bdf6

- see last commit - sloppy me forgot a part of that regression fix
author Tassilo Philipp
date Sun, 14 May 2017 02:29:55 +0200
parents 3f7c69fadfc3
children 704c28fd9428
comparison
equal deleted inserted replaced
251:3f7c69fadfc3 252:047d2829bdf6
70 DCerror dcInitExecWX(void* p, size_t size) 70 DCerror dcInitExecWX(void* p, size_t size)
71 { 71 {
72 #if !defined(MAP_ANON) && defined(DC_UNIX) 72 #if !defined(MAP_ANON) && defined(DC_UNIX)
73 /* Fixup pointer for no-MAP_ANON workaround (see above) */ 73 /* Fixup pointer for no-MAP_ANON workaround (see above) */
74 p -= sizeof(int); 74 p -= sizeof(int);
75 size += sizeof(int);
75 #endif 76 #endif
76 return mprotect(p, size, PROT_READ|PROT_EXEC); 77 return mprotect(p, size, PROT_READ|PROT_EXEC);
77 } 78 }
78 79
79 void dcFreeWX(void* p, size_t size) 80 void dcFreeWX(void* p, size_t size)