1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 12:12:47 +01:00
llvm-mirror/include/llvm/System
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
..
AIXDataTypesFix.h
Alarm.h
Atomic.h
DataTypes.h.cmake
DataTypes.h.in
Disassembler.h
DynamicLibrary.h Fix "the the" and similar typos. 2010-02-10 16:03:48 +00:00
Errno.h
Host.h
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