diff options
author | 2014-02-21 14:15:01 +0800 | |
---|---|---|
committer | 2014-02-25 10:32:24 +0800 | |
commit | 385de73a252806b212028c4aaccb86c296f2facc (patch) | |
tree | 5e270c355e06a3f84b5aa4884b8780f64eb92059 /compiler/common_compiler_test.h | |
parent | 3fcf18e25241253f23efbeebe77b2a4c4a7c54d3 (diff) |
Fix the memory protection issue in RosAllocSpace::CreateFromMemMap()
From the implementation of RosAllocSpace::CreateFromMemMap(), the memory
beyond the starting_size should be protected.
But the argument of mprotect is wrongly set to be "capacity -
initial_size", logically it should be "capacity - starting_size"
This patch also fix the same issue in dlmalloc
Change-Id: Icbd4ba790f344d4fa79d9896657f638a03d6f8aa
Author: Lin Zang <lin.zang@intel.com>
Signed-off-by: Jack Ren <jack.ren@intel.com>
Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
Diffstat (limited to 'compiler/common_compiler_test.h')
0 files changed, 0 insertions, 0 deletions