From f51642ad1374b5bc6bfcf076c7459f7a7bf0db54 Mon Sep 17 00:00:00 2001 From: Guy McSwain Date: Sat, 27 Jun 2020 07:08:01 -0500 Subject: [PATCH] Revert "Remove excessive PROT_EXEC" --- pigpio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pigpio.c b/pigpio.c index 0ad740d..491c40d 100644 --- a/pigpio.c +++ b/pigpio.c @@ -7332,7 +7332,7 @@ static int initGrabLockFile(void) static uint32_t * initMapMem(int fd, uint32_t addr, uint32_t len) { return (uint32_t *) mmap(0, len, - PROT_READ|PROT_WRITE, + PROT_READ|PROT_WRITE|PROT_EXEC, MAP_SHARED|MAP_LOCKED, fd, addr); }