Go to file
Pete Cooper 47e5399cd3 Fix more cases of UB from allocating 0 sized data. NFC.
The size of a section can be zero, even when it contains atoms, so
long as all of the atoms are also size 0.  In this case we were
allocating space for a 0 sized buffer.

Changed this to only allocate when we need the space, but also cleaned
up all the code to use MutableArrayRef instead of uint8_t* so its much much
safer as we get bounds checking on all of our section creation logic.

llvm-svn: 264204
2016-03-23 22:19:16 +00:00
clang Add missing __builtin_bitreverse8 2016-03-23 22:14:43 +00:00
clang-tools-extra Add check for unneeded copies of locals 2016-03-23 09:33:07 +00:00
compiler-rt [sanitizer] Add strnlen to the common interceptors 2016-03-23 21:24:28 +00:00
debuginfo-tests New round of fixes for "Always compile debuginfo-tests for the host triple" 2014-10-18 23:47:59 +00:00
libclc math: Fix ilogb(double) return type 2016-02-24 00:52:15 +00:00
libcxx Guard a number of tests relying on threads support when built in 2016-03-23 21:04:11 +00:00
libcxxabi [libcxxabi] Disable cxa_thread_atexit_test if unavailable 2016-03-17 10:00:24 +00:00
libunwind [AArch64] Fix libunwind build when using GNU assembler 2016-02-11 21:22:57 +00:00
lld Fix more cases of UB from allocating 0 sized data. NFC. 2016-03-23 22:19:16 +00:00
lldb Implement ObjectFilePECOFF::GetEntryPointAddress. 2016-03-23 18:00:13 +00:00
llgo [cmake] fix libgo-llgo paths in install target 2016-03-23 12:39:21 +00:00
llvm StringRef::copy shouldn't allocate anything for length 0 strings. 2016-03-23 21:49:31 +00:00
openmp Fix Visual Studio builds 2016-03-23 16:27:25 +00:00
polly Drop explicit -polly-delinearize parameter 2016-03-23 13:21:02 +00:00