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 Move DataTypes.h to include/llvm/System, update all users. This breaks the last 2009-10-26 01:35:46 +00:00
Alarm.h Add a warning. 2009-07-31 22:24:20 +00:00
Atomic.h Fixes the Atomic implementation if compiled by MSVC compiler. 2009-12-07 05:29:59 +00:00
DataTypes.h.cmake For VC++, define the ?INT*_C macros only it they are not yet defined. 2009-12-08 02:40:09 +00:00
DataTypes.h.in Removed VC++ compatibility code from DataTypes.h.in. 2009-12-08 02:49:54 +00:00
Disassembler.h Move DataTypes.h to include/llvm/System, update all users. This breaks the last 2009-10-26 01:35:46 +00:00
DynamicLibrary.h Fix "the the" and similar typos. 2010-02-10 16:03:48 +00:00
Errno.h Add a portable strerror*() wrapper, llvm::sys::StrError(). This includes the 2009-07-01 18:11:20 +00:00
Host.h Stubs for getHostCPUFeatures API. This implements part of PR5389. 2010-01-19 21:26:05 +00:00
IncludeFile.h Fix a bunch of Doxygen syntax issues. Escape special characters, 2009-03-03 02:55:14 +00:00
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 Tweak code into an equivalent form for which icc 2009-09-06 10:53:22 +00:00
Path.h Fix various doxygen warnings. 2010-02-22 04:10:52 +00:00
Process.h Fix llvm-extract's "writing bitcode to a terminal" warning, which wasn't 2009-09-11 20:46:33 +00:00
Program.h Add llvm::Program::ChangeStderrToBinary(). 2010-01-28 06:42:08 +00:00
RWMutex.h Have scoped mutexes take referenes instead of pointers. 2009-07-07 18:33:04 +00:00
Signals.h Add a new 'AddSignalHandler' function to Signals.h that allows 2009-03-04 21:21:36 +00:00
Solaris.h Add support for building on solaris, working around namespace 2008-06-24 17:44:42 +00:00
Threading.h Move Threading.[h|cpp] from Support to System. 2009-06-18 16:54:52 +00:00
ThreadLocal.h Add support for const thread locals. 2009-06-25 23:31:18 +00:00
TimeValue.h 80-col violation. 2009-11-07 06:33:01 +00:00
Valgrind.h Tell Valgrind when we modify already-executed machine code so it knows 2010-03-15 04:57:55 +00:00