scripts

misc scripts and tools
git clone git://git.2f30.org/scripts.git
Log | Files | Refs

commit fcfc8d8e7ff205fa245e0f8c89bf6ce5cba597df
parent e147f87f410671671d1b1ffafdaf6ad2dd37a967
Author: sin <sin@2f30.org>
Date:   Tue Jul 30 10:42:47 +0100

Add comment for guard page

Diffstat:
alloc.c | 1+
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/alloc.c b/alloc.c @@ -36,6 +36,7 @@ mmap_page_aligned(size_t nbytes) PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANON, -1, 0); if (addr == MAP_FAILED) return NULL; + /* Guard page at the end of the allocation */ ret = mprotect((char *)addr + nbytes, 0x1000, PROT_NONE); if (ret < 0) {