llvm-6502/include/llvm/System
Torok Edwin b4bc96317a 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).


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@99762 91177308-0d34-0410-b5e6-96231b3b80d8
2010-03-28 11:07:36 +00:00
..
AIXDataTypesFix.h
Alarm.h
Atomic.h
DataTypes.h.cmake
DataTypes.h.in Removed VC++ compatibility code from DataTypes.h.in. 2009-12-08 02:49:54 +00:00
Disassembler.h
DynamicLibrary.h Fix "the the" and similar typos. 2010-02-10 16:03:48 +00:00
Errno.h
Host.h Stubs for getHostCPUFeatures API. This implements part of PR5389. 2010-01-19 21:26:05 +00:00
IncludeFile.h
LICENSE.TXT
Memory.h Fix use-of-uninitialized value when RWX memory can't be allocated (PR6701). 2010-03-28 11:07:36 +00:00
Mutex.h
Path.h Fix various doxygen warnings. 2010-02-22 04:10:52 +00:00
Process.h
Program.h Add llvm::Program::ChangeStderrToBinary(). 2010-01-28 06:42:08 +00:00
RWMutex.h
Signals.h
Solaris.h
Threading.h
ThreadLocal.h
TimeValue.h
Valgrind.h Tell Valgrind when we modify already-executed machine code so it knows 2010-03-15 04:57:55 +00:00