817ac724e2 
								
							 
						 
						
							
							
								
								[ASan] NFC: Factor out platform-specific interceptors  
							
							... 
							
							
							
							Reviewed at http://reviews.llvm.org/D8321 
llvm-svn: 232377 
							
						 
						
							2015-03-16 14:22:53 +00:00  
				
					
						
							
							
								 
						
							
								220ddacf8d 
								
							 
						 
						
							
							
								
								[ASan/Win] Land the trivial bits of -MD RTL support (PR20214)  
							
							... 
							
							
							
							llvm-svn: 216265 
							
						 
						
							2014-08-22 12:38:07 +00:00  
				
					
						
							
							
								 
						
							
								f294f25d3a 
								
							 
						 
						
							
							
								
								Make sanitizers' interceptors non-weak on FreeBSD  
							
							... 
							
							
							
							Differential Revision: http://reviews.llvm.org/D4418 
llvm-svn: 212693 
							
						 
						
							2014-07-10 09:16:58 +00:00  
				
					
						
							
							
								 
						
							
								0c7c78f1d1 
								
							 
						 
						
							
							
								
								[ASan/Win] Use the new function interception approach to handle function wrappers too; wrap strlen() in DLLs  
							
							... 
							
							
							
							Reviewed at http://reviews.llvm.org/D3871 
llvm-svn: 209427 
							
						 
						
							2014-05-22 12:03:40 +00:00  
				
					
						
							
							
								 
						
							
								04f2bf0f07 
								
							 
						 
						
							
							
								
								[sanitizer] Interception macros for sanitizers on FreeBSD; patch by Viktor Kutuzov  
							
							... 
							
							
							
							llvm-svn: 202009 
							
						 
						
							2014-02-24 08:37:41 +00:00  
				
					
						
							
							
								 
						
							
								edecc38395 
								
							 
						 
						
							
							
								
								Make some pthread_mutex_* and pthread_cond_* interceptors common.  
							
							... 
							
							
							
							Reviewers: eugenis, dvyukov
Reviewed By: dvyukov
CC: llvm-commits
Differential Revision: http://llvm-reviews.chandlerc.com/D1937 
llvm-svn: 192774 
							
						 
						
							2013-10-16 08:20:31 +00:00  
				
					
						
							
							
								 
						
							
								92702d8401 
								
							 
						 
						
							
							
								
								[ASan] Remove the explicit function prototypes for intercepted functions on Windows  
							
							... 
							
							
							
							llvm-svn: 190411 
							
						 
						
							2013-09-10 14:42:15 +00:00  
				
					
						
							
							
								 
						
							
								a15d49cc1f 
								
							 
						 
						
							
							
								
								[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 
							
						 
						
							2013-05-20 13:32:35 +00:00  
				
					
						
							
							
								 
						
							
								f0b8f989e9 
								
							 
						 
						
							
							
								
								add Linux syscall wrappers and ThreadLister to sanitizer_common  
							
							... 
							
							
							
							ThreadLister is a Linux-specific class for obtaining the thread IDs of a process from procfs (/proc/<pid>/task/). It will be used by leak checking code.
Also add several syscall wrappers which will be required by the same code that uses ThreadLister, but are not used in ThreadLister itself.
Patch by Sergey Matveev
llvm-svn: 176179 
							
						 
						
							2013-02-27 11:22:40 +00:00  
				
					
						
							
							
								 
						
							
								e8ba1c851a 
								
							 
						 
						
							
							
								
								[ASan] Refactoring: nuke the redundant function declarations in asan_intercepted_functions.h  
							
							... 
							
							
							
							that had been used on OS X only.
The INTERCEPTOR() macro on OS X is now responsible for declaring the wrapped function, the wrapper and the
pair of pointers to them in __DATA,__interposition section. Thus adding an interceptor requires editing a single file now.
llvm-svn: 175740 
							
						 
						
							2013-02-21 14:41:16 +00:00  
				
					
						
							
							
								 
						
							
								039fa75e4d 
								
							 
						 
						
							
							
								
								[asan] fix x32 build (H.J. Lu)  
							
							... 
							
							
							
							llvm-svn: 175140 
							
						 
						
							2013-02-14 08:05:55 +00:00  
				
					
						
							
							
								 
						
							
								4ea6816247 
								
							 
						 
						
							
							
								
								[sanitizer] OFF_T on Mac is u64.  
							
							... 
							
							
							
							llvm-svn: 174600 
							
						 
						
							2013-02-07 09:52:43 +00:00  
				
					
						
							
							
								 
						
							
								8268785f44 
								
							 
						 
						
							
							
								
								[sanitizer] Fix wrong size of OFF_T on 32-bit platforms.  
							
							... 
							
							
							
							This broke pread/pwrite interceptors when building without
-D_FILE_OFFSET_BITS=64, and always on Android.
llvm-svn: 174593 
							
						 
						
							2013-02-07 07:37:12 +00:00  
				
					
						
							
							
								 
						
							
								34157fc33f 
								
							 
						 
						
							
							
								
								[ASan] Delete the code related to static runtime on OS X.  
							
							... 
							
							
							
							Nuke lib/interception/mach_override.
llvm-svn: 174383 
							
						 
						
							2013-02-05 15:57:12 +00:00  
				
					
						
							
							
								 
						
							
								32832e6176 
								
							 
						 
						
							
							
								
								[Sanitizer] include sanitizer_common headers when building interception library  
							
							... 
							
							
							
							llvm-svn: 173930 
							
						 
						
							2013-01-30 14:27:41 +00:00  
				
					
						
							
							
								 
						
							
								358698279d 
								
							 
						 
						
							
							
								
								[sanitizer] Further split private and public sanitizer headers.  
							
							... 
							
							
							
							And make msan_interface.h C-compatible.
llvm-svn: 173928 
							
						 
						
							2013-01-30 13:12:08 +00:00  
				
					
						
							
							
								 
						
							
								222076e972 
								
							 
						 
						
							
							
								
								[sanitizer] Common *scanf interceptors.  
							
							... 
							
							
							
							llvm-svn: 172805 
							
						 
						
							2013-01-18 11:17:23 +00:00  
				
					
						
							
							
								 
						
							
								07bb3925b0 
								
							 
						 
						
							
							
								
								[sanitizer] replace size_t with SIZE_T in interceptors (same for ssize_t, off_t and off64_t). This is done to avoid confusion and to make the code work with compilers that define size_t w/o any includes (MSVC)  
							
							... 
							
							
							
							llvm-svn: 170103 
							
						 
						
							2012-12-13 06:31:40 +00:00  
				
					
						
							
							
								 
						
							
								a555b3faf4 
								
							 
						 
						
							
							
								
								[ASan] Apply some ASan-relevant pieces of patch by Ruben Van Boxem. In the same time, remove ASan from CMake build on Windows after conversation with Timur. We don't want to support building ASan on Windows until it is in a working state.  
							
							... 
							
							
							
							llvm-svn: 164486 
							
						 
						
							2012-09-24 11:43:40 +00:00  
				
					
						
							
							
								 
						
							
								a81d268acd 
								
							 
						 
						
							
							
								
								[ASan] fix interception macro for Android build  
							
							... 
							
							
							
							llvm-svn: 163692 
							
						 
						
							2012-09-12 09:42:23 +00:00  
				
					
						
							
							
								 
						
							
								788eaeb35b 
								
							 
						 
						
							
							
								
								[Sanitizer] get rid of empty DEFAULT_CONVENTION in interception lib to remove empty macro arguments  
							
							... 
							
							
							
							llvm-svn: 163622 
							
						 
						
							2012-09-11 15:02:20 +00:00  
				
					
						
							
							
								 
						
							
								c62210e3ff 
								
							 
						 
						
							
							
								
								Commit the source and CMake changes that will allow to build ASan runtime  
							
							... 
							
							
							
							as a shared library on Mac OS. This will provide an alternative to
mach_override.
llvm-svn: 162091 
							
						 
						
							2012-08-17 09:00:08 +00:00  
				
					
						
							
							
								 
						
							
								0f840bd240 
								
							 
						 
						
							
							
								
								[Sanitizer] Workaround for a compiler warning - ISO C++ forbids casting pointer-to-function to pointer-to-object, so we use cast via integral type  
							
							... 
							
							
							
							llvm-svn: 161168 
							
						 
						
							2012-08-02 11:19:13 +00:00  
				
					
						
							
							
								 
						
							
								70386aaffa 
								
							 
						 
						
							
							
								
								[ASan] cleanup: trailing semicolons, trailing colons in enums  
							
							... 
							
							
							
							llvm-svn: 159338 
							
						 
						
							2012-06-28 08:27:24 +00:00  
				
					
						
							
							
								 
						
							
								fa42dd7ac4 
								
							 
						 
						
							
							
								
								[Sanitizer] fight more semicolons in macro definitions (to please mac cmake build)  
							
							... 
							
							
							
							llvm-svn: 159337 
							
						 
						
							2012-06-28 08:07:19 +00:00  
				
					
						
							
							
								 
						
							
								bbff278c9c 
								
							 
						 
						
							
							
								
								Lots of trivial changes to remove extraneous semicolons throughout ASan.  
							
							... 
							
							
							
							llvm-svn: 159128 
							
						 
						
							2012-06-25 06:53:10 +00:00  
				
					
						
							
							
								 
						
							
								bd310f02a5 
								
							 
						 
						
							
							
								
								asan/tsan: rename interceptors from __xsan_xxx to __interceptor_xxx  
							
							... 
							
							
							
							llvm-svn: 157569 
							
						 
						
							2012-05-28 07:47:35 +00:00  
				
					
						
							
							
								 
						
							
								7fb7330469 
								
							 
						 
						
							
							
								
								asan/tsan: weak interceptors  
							
							... 
							
							
							
							The idea isthat asan/tsan can survive if user intercepts the same functions. At the same time user has an ability to call back into asan/tsan runtime. See the following tests for examples:
asan/output_tests/interception_failure_test-linux.cc
asan/output_tests/interception_test-linux.cc
asan/output_tests/interception_malloc_test-linux.cc
llvm-svn: 157388 
							
						 
						
							2012-05-24 13:54:31 +00:00  
				
					
						
							
							
								 
						
							
								1dd4c606ed 
								
							 
						 
						
							
							
								
								[asan] move lib/asan/interception to lib/interception so that other tools (e.g. tsan) can use it  
							
							... 
							
							
							
							llvm-svn: 156816 
							
						 
						
							2012-05-15 12:21:33 +00:00