From 308c63783a3c8ec420bd3a5939fe206230306b3b Mon Sep 17 00:00:00 2001 From: Matt Birkholz Date: Thu, 12 Jul 2012 17:30:21 -0700 Subject: [PATCH] microcode: Fix start in mmap_heap_malloc_search for __linux__. The AppArmor hack moved and missed its chance to frob start. --- src/microcode/ux.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/microcode/ux.c b/src/microcode/ux.c index 2c818aa2e..513c008db 100644 --- a/src/microcode/ux.c +++ b/src/microcode/ux.c @@ -806,7 +806,7 @@ mmap_heap_malloc_search (unsigned long request, { char fn [64]; FILE * s; - unsigned long start = min_result; + unsigned long start; /* AppArmor can specify a minimum usable address. In that case we need to detect it and compensate. */ @@ -825,6 +825,7 @@ mmap_heap_malloc_search (unsigned long request, if (s == 0) goto no_address; + start = min_result; while ((start + request) <= max_result) { unsigned long end; -- 2.25.1