llvm-project/compiler-rt/lib/tsan
Kuba Brecka 9ccde5ace4 [tsan] Return 0 from malloc_size for non-malloc'd pointers
In http://reviews.llvm.org/D19100, I introduced a bug: On OS X, existing programs rely on malloc_size() to detect whether a pointer comes from heap memory (malloc_size returns non-zero) or not. We have to distinguish between a zero-sized allocation (where we need to return 1 from malloc_size, due to other binary compatibility reasons, see http://reviews.llvm.org/D19100), and pointers that are not returned from malloc at all.

Differential Revision: http://reviews.llvm.org/D19653

llvm-svn: 268157
2016-04-30 07:14:41 +00:00
..
benchmarks [tsan] ThreadSanitizer tests and micro benchmarks. No makefiles yet. 2012-05-10 14:18:22 +00:00
dd [cmake] Address Samsonov's post-commit review of r262723 2016-03-05 10:01:04 +00:00
go tsan: fix build 2016-04-27 12:59:35 +00:00
rtl [tsan] Return 0 from malloc_size for non-malloc'd pointers 2016-04-30 07:14:41 +00:00
tests tsan: change tsan/Go interface for obtaining the current Processor 2016-04-27 12:30:48 +00:00
.clang-format Tell clang-format that (most) sanitizers are written using Google style guide. 2015-11-19 22:11:10 +00:00
CMakeLists.txt tsan: split thread into logical and physical state 2016-04-27 08:23:02 +00:00
analyze_libtsan.sh [TSan] Slightly improve check_analyze script. 2015-12-07 20:18:50 +00:00
check_analyze.sh [TSan] Adjust expectation for check_analyze.sh 2016-02-13 00:55:58 +00:00
check_cmake.sh tsan: use a different dir for llvm build 2014-10-15 08:56:15 +00:00