llvm-mirror/include
Torok Edwin 801742470e Fix use-of-uninitialized value when RWX memory can't be allocated (PR6701).
SELinux doesn't allow 'execmem', returning MAP_FAILED and 'Permission denied'
for mmap or RWX memory. In this case AllocateRWX was returning a MemoryBlock
with uninitialized fields, which sometimes caused crashes.

This patch initializes MemoryBlock fields to 0, so that the RWX-failure check
works.
It doesn't fix the SELinux 'execmem' issues though (the JIT will not work when
SELinux is in enforcing mode).

llvm-svn: 99762
2010-03-28 11:07:36 +00:00
..
llvm Fix use-of-uninitialized value when RWX memory can't be allocated (PR6701). 2010-03-28 11:07:36 +00:00
llvm-c Whoops this already existed. 2010-03-11 23:21:19 +00:00