summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target
diff options
context:
space:
mode:
authorTorok Edwin <edwintorok@gmail.com>2010-03-28 11:07:36 +0000
committerTorok Edwin <edwintorok@gmail.com>2010-03-28 11:07:36 +0000
commit07f0adc2a6be5e00a0b5a1b87ec123cb357dead7 (patch)
tree9fd0ea4567f87c2c4a63169c78a575057dff9c2e /llvm/lib/Target
parent135091bd9dd749b6bf731697b2371b77be5bdf5f (diff)
downloadbcm5719-llvm-07f0adc2a6be5e00a0b5a1b87ec123cb357dead7.tar.gz
bcm5719-llvm-07f0adc2a6be5e00a0b5a1b87ec123cb357dead7.zip
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
Diffstat (limited to 'llvm/lib/Target')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud