- May 20, 2013
-
-
Peter Collingbourne authored
GetPageSize wraps sysconf(_SC_PAGESIZE) on POSIX platforms, but sysconf resides in libc. To make this libc-independent on Linux, move the wrapper to sanitizer_mac.cc and return the Linux-specific constant EXEC_PAGESIZE in the sanitizer_linux.cc implementation. llvm-svn: 182303
-
Peter Collingbourne authored
llvm-svn: 182292
-
Peter Collingbourne authored
__libc_stack_end is made into a weak symbol if possible. If libc is not linked, read args and environment from /proc. llvm-svn: 182276
-
Alexander Potapenko authored
[libsanitizer] Introduce INTERCEPTOR_WITH_SUFFIX which is to be used for appending the __DARWIN_ALIAS() version suffixes to function names on Darwin. This should fix asan/lit_tests/wait.cc under ASan. llvm-svn: 182259
-
Sergey Matveev authored
llvm-svn: 182250
-
Kostya Serebryany authored
[sanitizer] factor out ByteMap from SizeClassAllocator32 so that it can be later replaced with a more memory-efficient implementation on 64-bit. llvm-svn: 182234
-
- May 19, 2013
-
-
Richard Smith authored
llvm-svn: 182218
-
- May 18, 2013
-
-
David Blaikie authored
llvm-svn: 182177
-
- May 17, 2013
-
-
Peter Collingbourne authored
Before, we had an unused internal_getpid function for Linux, and a platform-independent GetPid function. To make the naming conventions consistent for syscall-like functions, the GetPid syscall wrapper in sanitizer_posix.cc is moved to sanitizer_mac.cc, and GetPid is renamed to internal_getpid, bringing the Linux variant into use. llvm-svn: 182132
-
Peter Collingbourne authored
Introduce a new object library, RTSanitizerCommonLibc, which will contain the subset of sanitizer_common with libc dependencies. RTSanitizerCommon contains the remainder of sanitizer_common, and is intended to have no libc dependencies. Begin moving code to RTSanitizerCommonLibc, starting with sanitizer_common.cc, whose libc-dependent portion is moved to sanitizer_common_libcdep.cc, the first member of the new library. This split affects the CMake build only. The makefile build continues to produce the full sanitizer_common library. llvm-svn: 182118
-
Evgeniy Stepanov authored
llvm-svn: 182110
-
Evgeniy Stepanov authored
llvm-svn: 182094
-
Evgeniy Stepanov authored
llvm-svn: 182093
-
Dmitry Vyukov authored
llvm-svn: 182087
-
- May 16, 2013
-
-
Kostya Serebryany authored
llvm-svn: 182006
-
Kostya Serebryany authored
[asan] symbolize when possible, even if ASAN_SYMBOLIZER_PATH is not provided. On Linux this will use dl_iterate_phdr instead of /proc/self/maps, even if the symbolizer is not installed llvm-svn: 182005
-
Sergey Matveev authored
llvm-svn: 182002
-
Kostya Serebryany authored
llvm-svn: 181992
-
Kostya Serebryany authored
[sanitizer] fix the GetBlockBegin overflow bug while preserving the performance optimization (use 32-bit division when possible). Improve the benchmarks that checks for performance of GetBlockBegin/GetMetaData llvm-svn: 181989
-
Kostya Serebryany authored
[sanitizer] added a test for a bug in allocator discovered by Sergey Matveev (uint32 overflow in GetBlockBegin) llvm-svn: 181984
-
- May 15, 2013
-
-
Kostya Serebryany authored
llvm-svn: 181881
-
- May 14, 2013
-
-
Sergey Matveev authored
llvm-svn: 181796
-
Sergey Matveev authored
llvm-svn: 181793
-
Sergey Matveev authored
llvm-svn: 181791
-
Sergey Matveev authored
llvm-svn: 181787
-
Sergey Matveev authored
llvm-svn: 181786
-
Kostya Serebryany authored
llvm-svn: 181763
-
- May 13, 2013
-
-
Sergey Matveev authored
llvm-svn: 181698
-
Sergey Matveev authored
Original patch by Abdoulaye Walsimou Gaye. llvm-svn: 181697
-
- May 08, 2013
-
-
Peter Collingbourne authored
llvm-svn: 181457
-
Peter Collingbourne authored
llvm-svn: 181440
-
Peter Collingbourne authored
This change moves to a model where the error value of a system call is potentially contained in the return value itself rather than being implicit in errno. The helper function internal_iserror can be used to extract the error value from a return value. On platforms other than Linux/x86_64 this still uses errno, but other platforms are free to port their error handling to this new model. Differential Revision: http://llvm-reviews.chandlerc.com/D756 llvm-svn: 181436
-
Sergey Matveev authored
llvm-svn: 181428
-
Sergey Matveev authored
llvm-svn: 181424
-
- May 07, 2013
-
-
Sergey Matveev authored
llvm-svn: 181330
-
Sergey Matveev authored
llvm-svn: 181327
-
Sergey Matveev authored
Move this function to sanitizer_common because LSan uses it too. Also, fix a bug where the TLS range reported for main thread was off by the size of the thread descriptor from libc (TSan doesn't care much, but for LSan it's critical). llvm-svn: 181322
-
Evgeniy Stepanov authored
With this change, __internal_*stat always expect a "struct stat *" argument. This avoids stat/stat64 caller-side confusion (sanitizer_common tests already made this mistake), and allows the use of __internal_fstat() as a drop-in replacement for libc's fstat(). llvm-svn: 181311
-
- May 06, 2013
-
-
Sergey Matveev authored
Some flags that are common to ASan/MSan/TSan/LSan have been moved to sanitizer_common. llvm-svn: 181193
-
- Apr 30, 2013
-
-
Dmitry Vyukov authored
llvm-svn: 180788
-