llvm-project/compiler-rt/lib/sanitizer_common
Kamil Rytarowski 98f1dd0bd5 Cast the return value of _Unwind_GetIP() to uptr
This is needed for NetBSD to match the expected type in
Unwind_GetIP().

llvm-svn: 345620
2018-10-30 18:25:12 +00:00
..
scripts [Sanitizers] Export aligned new/delete from runtimes. 2017-12-23 00:30:51 +00:00
symbolizer [sanitizer] Update symbolizer test. 2018-07-24 23:50:42 +00:00
tests [sanitizer] Disable failing Android test after D52371 2018-09-27 19:15:40 +00:00
.clang-format [sanitizer] Remove unneeded blank lines 2018-05-09 00:44:26 +00:00
.clang-tidy [sanitizers] specifying style for global constant 2016-11-17 21:57:43 +00:00
CMakeLists.txt Switch syscall(2)/__syscall(2) calls to libc calls on NetBSD 2018-10-01 19:50:12 +00:00
sancov_begin.S [Sanitizers, CMake] Basic sanitizer Solaris support (PR 33274) 2017-12-22 18:04:20 +00:00
sancov_end.S [Sanitizers, CMake] Basic sanitizer Solaris support (PR 33274) 2017-12-22 18:04:20 +00:00
sancov_flags.cc General definition for weak functions 2017-01-29 05:44:59 +00:00
sancov_flags.h [sancov] Move __sancov_default_options declaration outside the namespace __sancov 2017-02-01 01:36:19 +00:00
sancov_flags.inc Revert "[sancov] moving sancov rt to sancov/ directory" 2017-01-12 01:37:35 +00:00
sanitizer_addrhashmap.h adding operator* to help working with primitive values 2016-11-16 19:35:37 +00:00
sanitizer_allocator.cc [Sanitizers] Remove OOM/BadRequest allocator error handling policies. 2018-06-20 17:10:33 +00:00
sanitizer_allocator.h [Sanitizers] Remove OOM/BadRequest allocator error handling policies. 2018-06-20 17:10:33 +00:00
sanitizer_allocator_bytemap.h [sanitizer] s/TestOnlyInit/Init for the allocator ByteMap (NFC) 2018-05-07 19:02:19 +00:00
sanitizer_allocator_checks.cc [sanitizer] Move the errno/ENOMEM allocator checks logic to separate .cc 2017-10-11 21:20:04 +00:00
sanitizer_allocator_checks.h [Sanitizers] Check alignment != 0 for aligned_alloc and posix_memalign 2018-06-08 20:40:35 +00:00
sanitizer_allocator_combined.h [Sanitizers] Make common allocator agnostic to failure handling modes. 2018-01-17 23:20:36 +00:00
sanitizer_allocator_interface.h [Sanitizers] New sanitizer API to purge allocator quarantine. 2017-10-23 17:12:07 +00:00
sanitizer_allocator_internal.h [sanitizer] Remove low-hanging-fruit dead code 2018-04-17 14:54:50 +00:00
sanitizer_allocator_local_cache.h [Sanitizers] Remove OOM/BadRequest allocator error handling policies. 2018-06-20 17:10:33 +00:00
sanitizer_allocator_primary32.h [sanitizer] Minor 32-bit primary improvements 2018-05-16 15:13:26 +00:00
sanitizer_allocator_primary64.h [sanitizer] Revert D50940 2018-08-29 19:41:28 +00:00
sanitizer_allocator_report.cc [Sanitizers] Remove OOM/BadRequest allocator error handling policies. 2018-06-20 17:10:33 +00:00
sanitizer_allocator_report.h [LSan] Report proper error on allocator failures instead of CHECK(0)-ing 2018-06-05 18:02:09 +00:00
sanitizer_allocator_secondary.h [Sanitizers] Make sanitizer allocator linker-initialize compliant. 2018-06-13 21:45:01 +00:00
sanitizer_allocator_size_class_map.h [sanitizer] Introduce a new SizeClassMap with minimal amount of cached entries 2018-09-27 18:20:42 +00:00
sanitizer_allocator_stats.h [Sanitizers] Make sanitizer allocator linker-initialize compliant. 2018-06-13 21:45:01 +00:00
sanitizer_asm.h [sanitizer] Refactor how assembly files are handled 2017-11-29 19:27:25 +00:00
sanitizer_atomic.h Revert r330376 "[sanitizer] Generalize atomic_uint8_t, atomic_uint16_t, ... into a template. NFC." 2018-04-20 07:34:59 +00:00
sanitizer_atomic_clang.h Reland "[mips][compiler-rt] Provide 64bit atomic add and sub" 2017-12-22 20:31:07 +00:00
sanitizer_atomic_clang_mips.h Reland "[mips][compiler-rt] Provide 64bit atomic add and sub" 2017-12-22 20:31:07 +00:00
sanitizer_atomic_clang_other.h [sanitizer] Correct 64-bit atomic_store on 32-bit "other" platforms 2018-05-09 16:20:52 +00:00
sanitizer_atomic_clang_x86.h [sanitizer] Remove st(X) from the clobber list in 32-bit x86 atomics 2018-08-13 15:01:24 +00:00
sanitizer_atomic_msvc.h [asan Win64] Implement atomic_compare_exchange_strong for 8 bit 2016-07-06 16:33:57 +00:00
sanitizer_bitvector.h Update other SizeEnums to be of type uptr as well 2017-12-06 23:02:02 +00:00
sanitizer_bvgraph.h Update other SizeEnums to be of type uptr as well 2017-12-06 23:02:02 +00:00
sanitizer_common.cc [sanitizer] Move __sanitizer_set_death_callback to a more appropriate file 2018-09-21 17:05:56 +00:00
sanitizer_common.h Reland "SafeStack: Delay thread stack clean-up"" 2018-08-14 20:28:58 +00:00
sanitizer_common_interceptors.inc [sanitizer] Move interceptor initialization check into real_clock_gettime 2018-10-30 01:20:01 +00:00
sanitizer_common_interceptors_format.inc [asan] print the 'unexpected format specifier in printf interceptor' warning just once (came up in https://github.com/google/oss-fuzz/pull/562). Not touching a similar scanf warning -- for some reason it does not fire for me. 2017-05-03 18:38:34 +00:00
sanitizer_common_interceptors_ioctl.inc [sanitizer] Cleanup sorting functions 2018-05-09 20:42:11 +00:00
sanitizer_common_interface.inc [libFuzzer] Report at most one crash per input. 2018-05-01 21:01:53 +00:00
sanitizer_common_interface_posix.inc [sanitizer] Add list of symbols exported in sanitizers' interface. 2017-01-31 20:23:21 +00:00
sanitizer_common_libcdep.cc [sanitizer] Avoid extra newlines in syslog. 2018-10-12 22:07:54 +00:00
sanitizer_common_nolibc.cc [sanitizer] Remove low-hanging-fruit dead code 2018-04-17 14:54:50 +00:00
sanitizer_common_syscalls.inc [sanitizer] Add syscall handlers for sigaction and rt_sigaction. 2016-06-24 23:09:44 +00:00
sanitizer_coverage_fuchsia.cc [sanitizer] Transition to new _zx_vmar_... calls 2018-08-30 01:27:26 +00:00
sanitizer_coverage_interface.inc [sanitizer_common] Update sanitizers w.r.t. the new comparisons instrumentation API 2017-08-10 14:22:57 +00:00
sanitizer_coverage_libcdep_new.cc [sanitizer] Cleanup sorting functions 2018-05-09 20:42:11 +00:00
sanitizer_coverage_win_dll_thunk.cc [sanitizer] Intercept weak functions in dll_thunks. 2017-02-02 23:01:34 +00:00
sanitizer_coverage_win_dynamic_runtime_thunk.cc [sanitizer] Add dynamic_runtime_thunk for different sanitizers. 2017-02-02 23:01:41 +00:00
sanitizer_coverage_win_sections.cc [libFuzzer] Port to Windows 2018-08-30 15:54:44 +00:00
sanitizer_coverage_win_weak_interception.cc [sanitizer] Use interception to access to strong definitions in the executable. 2017-02-02 23:02:11 +00:00
sanitizer_dbghelp.h [asan/win] Delay load dbghelp.dll to delay ucrtbase.dll initialization 2016-11-14 17:37:50 +00:00
sanitizer_deadlock_detector.h
sanitizer_deadlock_detector1.cc [tsan] Don't abort when a deadlock detector finds a mutex cycle longer than 10 2016-05-21 08:31:13 +00:00
sanitizer_deadlock_detector2.cc [sanitizer] Remove reserving constructor from InternalMmapVector 2018-05-07 05:56:24 +00:00
sanitizer_deadlock_detector_interface.h [tsan] Don't abort when a deadlock detector finds a mutex cycle longer than 10 2016-05-21 08:31:13 +00:00
sanitizer_errno.cc [Sanitizers] Consolidate internal errno definitions. 2017-07-06 00:50:57 +00:00
sanitizer_errno.h [sanitizer] Trivial portion of the port to Myriad RTEMS 2018-05-18 00:43:54 +00:00
sanitizer_errno_codes.h [Sanitizers] Consolidate internal errno definitions. 2017-07-06 00:50:57 +00:00
sanitizer_file.cc [sanitizer] Cleanup ReadFileToVector and ReadFileToBuffer 2018-06-06 20:53:43 +00:00
sanitizer_file.h [sanitizer_common] Move filesystem-related code out of sanitizer_common.cc 2017-07-22 01:46:40 +00:00
sanitizer_flag_parser.cc
sanitizer_flag_parser.h [sanitizer] Use const char* in internal_simple_strtoll 2018-06-17 08:41:45 +00:00
sanitizer_flags.cc [sanitizer] Remove low-hanging-fruit dead code 2018-04-17 14:54:50 +00:00
sanitizer_flags.h [sanitizer] Remove unnecessary attribute hidden. 2017-11-10 22:52:44 +00:00
sanitizer_flags.inc Silence a -Wconstant-logical-operand warning. 2018-06-07 18:51:47 +00:00
sanitizer_freebsd.h
sanitizer_fuchsia.cc [sanitizer][fuchsia] Fix VMAR leak 2018-09-19 19:50:35 +00:00
sanitizer_fuchsia.h [sanitizer_common] Don't provide sanitizer_procmaps API functions where not defined 2017-09-25 20:48:51 +00:00
sanitizer_getauxval.h [sanitizer] Allow Fuchsia to use getauxval 2018-01-19 22:33:30 +00:00
sanitizer_interceptors_ioctl_netbsd.inc [sanitizer] Cleanup sorting functions 2018-05-09 20:42:11 +00:00
sanitizer_interface_internal.h [libFuzzer] Report at most one crash per input. 2018-05-01 21:01:53 +00:00
sanitizer_internal_defs.h [sanitizer] Make __sanitizer::CheckFailed not public 2018-09-20 14:50:06 +00:00
sanitizer_lfstack.h
sanitizer_libc.cc [sanitizer] optimize internal_memset for the most performance critical case (16-byte-aligned) 2018-09-04 22:43:30 +00:00
sanitizer_libc.h [sanitizer] Use const char* in internal_simple_strtoll 2018-06-17 08:41:45 +00:00
sanitizer_libignore.cc OpenBSD UBsan support enabling SANITIZER_OPENBSD widely 2018-03-03 12:12:03 +00:00
sanitizer_libignore.h [tsan] Separate the constants in libignore and bump the maximum for instrumented libraries 2018-01-04 02:28:51 +00:00
sanitizer_linux.cc [Sanitizer] openbsd does not have sysctlbyname call 2018-10-21 21:17:03 +00:00
sanitizer_linux.h [Esan] Port cache frag to FreeBSD 2018-10-04 20:58:18 +00:00
sanitizer_linux_libcdep.cc [sanitizer] Move interceptor initialization check into real_clock_gettime 2018-10-30 01:20:01 +00:00
sanitizer_linux_mips64.S [ESan][MIPS] Adds support for MIPS64 2016-10-06 09:58:11 +00:00
sanitizer_linux_s390.cc [sanitizer] Fix s390 build after r334900 2018-06-17 17:40:38 +00:00
sanitizer_linux_x86_64.S [sanitizer][esan] Add internal_sigaction_syscall 2016-06-14 15:15:38 +00:00
sanitizer_list.h Whenever reasonable, merge ASAN quarantine batches to save memory. 2017-01-19 22:15:54 +00:00
sanitizer_mac.cc [sanitizer] Improve macOS version detection 2018-10-26 17:19:41 +00:00
sanitizer_mac.h [sanitizer] Improve macOS version detection 2018-10-26 17:19:41 +00:00
sanitizer_mac_libcdep.cc [sanitizer] Revert D50940 2018-08-29 19:41:28 +00:00
sanitizer_malloc_mac.inc [sanitizer] Fix Darwin build 2018-03-24 08:13:18 +00:00
sanitizer_mutex.h Pacify sanitizer lint script that still does not run on Windows 2018-07-31 00:08:26 +00:00
sanitizer_netbsd.cc Unwind local macro DEFINE_INTERNAL() 2018-10-05 18:07:34 +00:00
sanitizer_openbsd.cc [Sanitizer] openbsd does not have sysctlbyname call 2018-10-21 21:17:03 +00:00
sanitizer_persistent_allocator.cc
sanitizer_persistent_allocator.h
sanitizer_placement_new.h
sanitizer_platform.h Fix the configuration of the Primary allocator for Darwin ARM64 by 2018-09-24 09:28:35 +00:00
sanitizer_platform_interceptors.h [Lsan] intercept thr_exit on FreeBSD 2018-06-20 20:13:25 +00:00
sanitizer_platform_limits_linux.cc [sanitizer] Add a bunch of ifdefs for sparc targets to avoid build failures. 2016-12-02 08:07:35 +00:00
sanitizer_platform_limits_netbsd.cc Cleanup includes in sanitizer_platform_limits_netbsd.cc 2018-10-30 11:34:36 +00:00
sanitizer_platform_limits_netbsd.h Remove obsolete ptrace(2) operations from NetBSD 2018-03-03 16:21:13 +00:00
sanitizer_platform_limits_openbsd.cc OpenBSD UBsan support / common 2018-03-03 12:04:40 +00:00
sanitizer_platform_limits_openbsd.h OpenBSD sanitizer common, define RLIMIT_AS constant 2018-03-06 08:24:16 +00:00
sanitizer_platform_limits_posix.cc Add glibc_prereq to platform limits mmsghdr 2018-09-05 02:15:54 +00:00
sanitizer_platform_limits_posix.h [hwasan] Provide __sanitizer_* aliases to allocator functions. 2018-08-13 21:07:27 +00:00
sanitizer_platform_limits_solaris.cc [Sanitizers] Basic sanitizer Solaris support (PR 33274) 2017-12-14 20:14:29 +00:00
sanitizer_platform_limits_solaris.h Correct the setitimer interceptor on NetBSD 2018-01-12 20:45:56 +00:00
sanitizer_posix.cc [sanitizer_common] Use O_TRUNC for WrOnly access mode. 2018-06-16 03:32:59 +00:00
sanitizer_posix.h Introduce internal_sysctlbyname in place of sysctlbyname 2018-10-05 06:58:02 +00:00
sanitizer_posix_libcdep.cc [sanitizer] Revert D50940 2018-08-29 19:41:28 +00:00
sanitizer_printf.cc [Sanitizer] Internal Printf string width + left-justify. 2018-04-23 20:30:50 +00:00
sanitizer_procmaps.h OpenBSD UBsan support procmaps 2018-03-15 22:40:47 +00:00
sanitizer_procmaps_bsd.cc Switch sanitizer_procmaps_bsd to internal_sysctl 2018-09-29 07:45:03 +00:00
sanitizer_procmaps_common.cc OpenBSD UBsan support procmaps 2018-03-15 22:40:47 +00:00
sanitizer_procmaps_linux.cc [LSan] Fix one source of stale segments in the process memory mapping. 2017-11-28 22:15:27 +00:00
sanitizer_procmaps_mac.cc [sanitizer] Don't call task_for_pid(mach_task_self). NFC. 2018-08-23 22:55:58 +00:00
sanitizer_procmaps_solaris.cc [Sanitizers] Basic sanitizer Solaris support (PR 33274) 2017-12-14 20:14:29 +00:00
sanitizer_quarantine.h [Sanitizers] Make sanitizer allocator linker-initialize compliant. 2018-06-13 21:45:01 +00:00
sanitizer_report_decorator.h [LSan] Report proper error on allocator failures instead of CHECK(0)-ing 2018-06-05 18:02:09 +00:00
sanitizer_ring_buffer.h [hwasan] Record and display stack history in stack-based reports. 2018-09-24 23:03:34 +00:00
sanitizer_rtems.cc [sanitizer_common] Use O_TRUNC for WrOnly access mode. 2018-06-16 03:32:59 +00:00
sanitizer_rtems.h [asan, myriad] Simplify main thread handling 2018-05-30 04:57:29 +00:00
sanitizer_signal_interceptors.inc Handle symbol renaming of sigaction for NetBSD 2017-11-28 10:54:58 +00:00
sanitizer_solaris.cc [Sanitizers] Basic sanitizer Solaris support (PR 33274) 2017-12-14 20:14:29 +00:00
sanitizer_stackdepot.cc [sanitizer] Cleanup sorting functions 2018-05-09 20:42:11 +00:00
sanitizer_stackdepot.h
sanitizer_stackdepotbase.h
sanitizer_stacktrace.cc [sanitizer] Reland "Be more accurate when calculating the previous instruction address on ARM." 2018-05-23 09:18:10 +00:00
sanitizer_stacktrace.h [sanitizer] Reland "Be more accurate when calculating the previous instruction address on ARM." 2018-05-23 09:18:10 +00:00
sanitizer_stacktrace_libcdep.cc [sanitizer] Include inlined frames into __sanitizer_symbolize_pc output 2018-10-02 17:01:18 +00:00
sanitizer_stacktrace_printer.cc Handle pthread_sigmask in DemangleFunctionName() 2018-10-30 08:51:34 +00:00
sanitizer_stacktrace_printer.h [sanitizer] Use architecture/slice information when symbolizing fat Mach-O files on Darwin 2017-01-06 21:45:05 +00:00
sanitizer_stacktrace_sparc.cc [sanitizer] Port fast stack unwinder to sparcv8 2018-05-10 21:40:16 +00:00
sanitizer_stoptheworld.h Update suspended threads info to be compatible with darwin 2017-04-17 20:29:38 +00:00
sanitizer_stoptheworld_linux_libcdep.cc [asan] Workaround to avoid hangs in Chromium tests 2018-05-15 01:39:13 +00:00
sanitizer_stoptheworld_mac.cc [sanitizer] Remove use of task_for_pid from sanitizer_stoptheworld_mac.cc 2017-08-07 18:07:20 +00:00
sanitizer_suppressions.cc [sanitizer] Remove reserving constructor from InternalMmapVector 2018-05-07 05:56:24 +00:00
sanitizer_suppressions.h
sanitizer_symbolizer.cc Invalidate symbolizer module list from dlopen/dlclose interceptors 2017-09-26 16:12:56 +00:00
sanitizer_symbolizer.h [sanitizer] Remove reserving constructor from InternalMmapVector 2018-05-07 05:56:24 +00:00
sanitizer_symbolizer_fuchsia.h [sanitizer] Allow Fuchsia symbolizer to be reused by Myriad RTEMS 2018-05-11 23:52:19 +00:00
sanitizer_symbolizer_internal.h Revert r324847, there's bot failures. 2018-02-11 20:44:04 +00:00
sanitizer_symbolizer_libbacktrace.cc [sanitizer] Fix sanitizer_common compile errors on gcc trunk 2017-11-07 20:10:17 +00:00
sanitizer_symbolizer_libbacktrace.h
sanitizer_symbolizer_libcdep.cc [sanitizer] Trivial portion of the port to Myriad RTEMS 2018-05-18 00:43:54 +00:00
sanitizer_symbolizer_mac.cc Revert r324847, there's bot failures. 2018-02-11 20:44:04 +00:00
sanitizer_symbolizer_mac.h
sanitizer_symbolizer_markup.cc [sanitizer] Allow Fuchsia symbolizer to be reused by Myriad RTEMS 2018-05-11 23:52:19 +00:00
sanitizer_symbolizer_posix_libcdep.cc [sanitizer] Remove reserving constructor from InternalMmapVector 2018-05-07 05:56:24 +00:00
sanitizer_symbolizer_report.cc [sanitizer] Trivial portion of the port to Myriad RTEMS 2018-05-18 00:43:54 +00:00
sanitizer_symbolizer_rtems.h [sanitizer] Allow Fuchsia symbolizer to be reused by Myriad RTEMS 2018-05-11 23:52:19 +00:00
sanitizer_symbolizer_win.cc [sanitizer] Remove empty Symbolizer PrepareForSandboxing 2018-04-03 18:07:22 +00:00
sanitizer_syscall_generic.inc Remove remnant code of using indirect syscall on NetBSD 2018-10-08 18:04:46 +00:00
sanitizer_syscall_linux_aarch64.inc Remove remnant code of using indirect syscall on NetBSD 2018-10-08 18:04:46 +00:00
sanitizer_syscall_linux_arm.inc Remove remnant code of using indirect syscall on NetBSD 2018-10-08 18:04:46 +00:00
sanitizer_syscall_linux_x86_64.inc Remove remnant code of using indirect syscall on NetBSD 2018-10-08 18:04:46 +00:00
sanitizer_syscalls_netbsd.inc Regenerate syscall hooks for NetBSD 8.99.25 2018-10-30 11:10:36 +00:00
sanitizer_termination.cc [sanitizer] Move __sanitizer_set_death_callback to a more appropriate file 2018-09-21 17:05:56 +00:00
sanitizer_thread_registry.cc Prevent Thread Exited/Joined events race 2017-11-26 20:20:42 +00:00
sanitizer_thread_registry.h Prevent Thread Exited/Joined events race 2017-11-26 20:20:42 +00:00
sanitizer_tls_get_addr.cc Msan, fixing DTLS_on_tls_get_addr signature empty implementation 2018-02-21 04:16:45 +00:00
sanitizer_tls_get_addr.h [lsan] Avoid segfaults during threads destruction under high load 2017-04-06 07:42:27 +00:00
sanitizer_unwind_linux_libcdep.cc Cast the return value of _Unwind_GetIP() to uptr 2018-10-30 18:25:12 +00:00
sanitizer_unwind_win.cc [sanitizer] Split stacktrace/symbolizer: Windows unwind 2018-04-04 15:23:30 +00:00
sanitizer_vector.h [sanitizer] Fix __sanitizer::Vector::Resize vector 2018-04-13 18:41:52 +00:00
sanitizer_win.cc [sanitizers] [windows] Use a linker directive pragma for psapi 2018-10-10 09:03:58 +00:00
sanitizer_win.h [sanitizer_common] Don't provide sanitizer_procmaps API functions where not defined 2017-09-25 20:48:51 +00:00
sanitizer_win_defs.h Try to fix cosmetics to keep lines below 80 chars. NFC. 2018-09-25 21:27:07 +00:00
sanitizer_win_dll_thunk.cc [sanitizer] Intercept weak functions in dll_thunks. 2017-02-02 23:01:34 +00:00
sanitizer_win_dll_thunk.h [compiler-rt][asan] Fix incorrect macro preventing ICF with MSVC 2017-02-21 20:04:47 +00:00
sanitizer_win_dynamic_runtime_thunk.cc [sanitizer] Add dynamic_runtime_thunk for different sanitizers. 2017-02-02 23:01:41 +00:00
sanitizer_win_weak_interception.cc [sanitizer] Fix sanitizer_common compile errors on gcc trunk 2017-11-07 20:10:17 +00:00
sanitizer_win_weak_interception.h [sanitizer] Use interception to access to strong definitions in the executable. 2017-02-02 23:02:11 +00:00
weak_symbols.txt [sanitizer] Define as weak, functions that are declared as weak. 2017-01-31 20:23:14 +00:00