From: Ben Gras Date: Tue, 29 Sep 2009 12:10:30 +0000 (+0000) Subject: disable address space randomisation feature in normal mode. X-Git-Tag: v3.1.5~73 X-Git-Url: http://zhaoyanbai.com/repos/rndc.html?a=commitdiff_plain;h=0e43db1375525f9236f7bdd628884ba664db8ff6;p=minix.git disable address space randomisation feature in normal mode. --- diff --git a/servers/vm/i386/pagetable.c b/servers/vm/i386/pagetable.c index dd477a058..0d3f54549 100644 --- a/servers/vm/i386/pagetable.c +++ b/servers/vm/i386/pagetable.c @@ -155,7 +155,7 @@ PRIVATE u32_t findhole(pt_t *pt, u32_t vmin, u32_t vmax) vm_assert((vmin % I386_PAGE_SIZE) == 0); vm_assert((vmax % I386_PAGE_SIZE) == 0); -#if 1 +#if SANITYCHECKS curv = ((u32_t) random()) % ((vmax - vmin)/I386_PAGE_SIZE); curv *= I386_PAGE_SIZE; curv += vmin;