llvm-project/compiler-rt/lib/sanitizer_common
Martin Liska 629b40dafa Fix -Wformat warnings reported by GCC.
Differential Revision: https://reviews.llvm.org/D113099
2021-11-04 08:51:43 +01:00
..
scripts [sanitizer] Remove cpplint 2021-07-30 15:21:04 -07:00
symbolizer [compiler-rt] Use portable "#!/usr/bin/env bash" shebang for tests. 2021-09-24 19:10:07 +05:30
tests Revert "[NFC][sanitizer] Disable a test with large stderr output" 2021-11-02 01:25:46 -07:00
.clang-format Revert "sanitizers: increase .clang-format columns to 100" 2021-07-28 09:40:21 +02:00
CMakeLists.txt [NFC][sanitizer] Rename ByteMap to Map 2021-10-10 22:23:48 -07:00
sancov_flags.cpp
sancov_flags.h
sancov_flags.inc [compiler-rt] NFC: Fix trivial typo 2021-09-04 14:12:58 +05:30
sanitizer_addrhashmap.h sanitizer_common: remove BlockingMutex and RWMutex 2021-07-29 12:38:53 +02:00
sanitizer_allocator.cpp sanitizer_common: remove debugging logic from the internal allocator 2021-07-12 13:02:38 +02:00
sanitizer_allocator.h [NFC][sanitizer] Rename ByteMap to Map 2021-10-10 22:23:48 -07:00
sanitizer_allocator_checks.cpp
sanitizer_allocator_checks.h [compiler-rt] Replace INLINE with inline 2020-09-17 16:24:20 +02:00
sanitizer_allocator_combined.h sanitizer_common: add thread safety annotations 2021-07-12 11:46:49 +02:00
sanitizer_allocator_interface.h
sanitizer_allocator_internal.h
sanitizer_allocator_local_cache.h sanitizer_common: optimize memory drain 2021-07-13 16:28:48 -07:00
sanitizer_allocator_primary32.h [NFC][sanitizer] Refactor Maps into templates 2021-10-12 13:37:44 -07:00
sanitizer_allocator_primary64.h sanitizer_common: remove unnecessary GetMemoryProfile arg 2021-10-29 13:44:34 +02:00
sanitizer_allocator_report.cpp [MemProf] Memory profiling runtime support 2020-10-16 09:47:02 -07:00
sanitizer_allocator_report.h [MemProf] Memory profiling runtime support 2020-10-16 09:47:02 -07:00
sanitizer_allocator_secondary.h sanitizer_common: add thread safety annotations 2021-07-12 11:46:49 +02:00
sanitizer_allocator_size_class_map.h [sanitizer] Fix format string 2021-08-14 16:53:46 -07:00
sanitizer_allocator_stats.h
sanitizer_asm.h [sanitizer] Use one #if instead of 3 nested #if after D111185 2021-10-08 10:31:57 -07:00
sanitizer_atomic.h [compiler-rt] Replace INLINE with inline 2020-09-17 16:24:20 +02:00
sanitizer_atomic_clang.h [compiler-rt] Replace INLINE with inline 2020-09-17 16:24:20 +02:00
sanitizer_atomic_clang_mips.h [compiler-rt] NFC: Fix trivial typo 2021-09-04 14:12:58 +05:30
sanitizer_atomic_clang_other.h [sanitizer] Use __atomic_load/store() built-ins for generic 32-bit targets 2020-10-30 09:17:46 +01:00
sanitizer_atomic_clang_x86.h [compiler-rt] Replace INLINE with inline 2020-09-17 16:24:20 +02:00
sanitizer_atomic_msvc.h [compiler-rt] Replace INLINE with inline 2020-09-17 16:24:20 +02:00
sanitizer_bitvector.h
sanitizer_bvgraph.h
sanitizer_chained_origin_depot.cpp [sanitizer] Move out stack trace pointer from header StackDepot 2021-10-14 09:23:04 -07:00
sanitizer_chained_origin_depot.h [NFC][sanitizer] Remove includes from header 2021-10-08 14:27:05 -07:00
sanitizer_common.cpp sanitizer_common: sanitize time functions 2021-07-11 12:09:47 +02:00
sanitizer_common.h sanitizer_common: bump default file max size to 256MB 2021-10-29 14:03:26 +02:00
sanitizer_common_interceptors.inc [sanitizer] Allow getsockname with NULL addrlen 2021-11-03 10:23:01 -07:00
sanitizer_common_interceptors_format.inc sanitizer_common: fix format strings 2021-08-13 13:44:41 +02:00
sanitizer_common_interceptors_ioctl.inc libsanitizer: Remove cyclades inclusion in sanitizer 2021-05-20 18:55:26 +01:00
sanitizer_common_interceptors_netbsd_compat.inc [compiler-rt] change internal internal libc invariants 2021-08-24 16:41:15 +00:00
sanitizer_common_interceptors_vfork_aarch64.inc.S [AArch64][compiler-rt] Fix PAC instructions for older compilers 2021-03-11 09:21:05 +00:00
sanitizer_common_interceptors_vfork_arm.inc.S
sanitizer_common_interceptors_vfork_i386.inc.S Reland [sanitizer] Support Intel CET 2021-10-08 10:22:39 -07:00
sanitizer_common_interceptors_vfork_riscv64.inc.S [RISCV][ASAN] implementation for vfork interceptor for riscv64 2020-09-22 22:23:29 -07:00
sanitizer_common_interceptors_vfork_x86_64.inc.S Reland [sanitizer] Support Intel CET 2021-10-08 10:22:39 -07:00
sanitizer_common_interface.inc [sanitizer_common] Add facility to get the full report path 2020-11-19 09:19:12 -08:00
sanitizer_common_interface_posix.inc
sanitizer_common_libcdep.cpp [NFC][sanitizer] Return StackDepotStats by value 2021-09-28 15:42:21 -07:00
sanitizer_common_nolibc.cpp [Sanitizer] Allow setting the report path to create directory 2021-09-21 16:42:42 -07:00
sanitizer_common_syscalls.inc [sanitizer] Add callbacks for epoll_pwait2 2021-08-02 14:14:19 -07:00
sanitizer_coverage_fuchsia.cpp sanitizer_common: remove BlockingMutex and RWMutex 2021-07-29 12:38:53 +02:00
sanitizer_coverage_interface.inc [SanitizerCoverage] Add `__sanitizer_cov_bool_flag_init` as the weak interface functions. 2020-04-24 19:54:54 -07:00
sanitizer_coverage_libcdep_new.cpp [sanitizer coverage] write the pc-table at the process exit 2021-09-21 09:09:25 -07:00
sanitizer_coverage_win_dll_thunk.cpp
sanitizer_coverage_win_dynamic_runtime_thunk.cpp
sanitizer_coverage_win_sections.cpp Remove NOLINTs from compiler-rt 2019-09-11 23:19:48 +00:00
sanitizer_coverage_win_weak_interception.cpp
sanitizer_dbghelp.h
sanitizer_deadlock_detector.h
sanitizer_deadlock_detector1.cpp sanitizer_common: use 0 for empty stack id 2021-07-12 12:24:27 +02:00
sanitizer_deadlock_detector2.cpp sanitizer_common: rename Mutex to MutexState 2021-07-12 11:23:46 +02:00
sanitizer_deadlock_detector_interface.h [NFC] Fix cpplint warnings 2020-11-04 22:56:08 -08:00
sanitizer_errno.cpp
sanitizer_errno.h [asan] Remove Asan, Ubsan support of RTEMS and Myriad 2021-06-15 12:59:05 -07:00
sanitizer_errno_codes.h [msan] Skip memcpy interceptor called by gethostname 2020-09-25 15:26:34 -07:00
sanitizer_file.cpp [Sanitizer] Allow setting the report path to create directory 2021-09-21 16:42:42 -07:00
sanitizer_file.h [Sanitizer] Allow setting the report path to create directory 2021-09-21 16:42:42 -07:00
sanitizer_flag_parser.cpp [SanitizerCommon] Print the current value of options when printing out help. 2019-11-14 14:04:34 -08:00
sanitizer_flag_parser.h sanitizer_common: fix format strings 2021-08-13 13:44:41 +02:00
sanitizer_flags.cpp [asan] Add %d variable to external_symbolizer_path option, so that user can specify paths relative to the location of the binary. 2021-02-04 15:43:02 -08:00
sanitizer_flags.h [NFC] Extract InitializePlatformCommonFlags 2020-11-04 19:23:28 -08:00
sanitizer_flags.inc [sanitizer coverage] add a basic default implementation of callbacks for -fsanitize-coverage=inline-8bit-counters,pc-table 2021-08-24 14:56:15 -07:00
sanitizer_flat_map.h [NFC][sanitizer] Atomix relaxed in TwoLevelMap 2021-10-31 12:18:03 -07:00
sanitizer_freebsd.h [compiler-rt] clang-format FreeBSD-specific sanitizer sources 2020-02-06 22:48:08 +01:00
sanitizer_fuchsia.cpp sanitizer_common: remove unnecessary GetMemoryProfile arg 2021-10-29 13:44:34 +02:00
sanitizer_fuchsia.h [NFC][compiler-rt][fuchsia] Add InitShadowBounds declaration to header 2021-07-08 13:19:17 -07:00
sanitizer_getauxval.h Disable getauxval for Go 2020-07-31 10:13:03 -07:00
sanitizer_glibc_version.h compiler-rt: move all __GLIBC_PREREQ into own header file 2019-10-03 17:46:07 +00:00
sanitizer_hash.h [NFC][sanitizer] Add MurMur2Hash64Builder 2021-10-05 20:54:06 -07:00
sanitizer_interceptors_ioctl_netbsd.inc [sanitizer] Remove cpplint annotations 2021-07-30 18:20:40 -07:00
sanitizer_interface_internal.h [sanitizer coverage] add a basic default implementation of callbacks for -fsanitize-coverage=inline-8bit-counters,pc-table 2021-08-24 14:56:15 -07:00
sanitizer_internal_defs.h [sanitizer] Add hexagon support to sanitizer-common 2021-08-17 19:59:24 -07:00
sanitizer_lfstack.h
sanitizer_libc.cpp [compiler-rt] change internal internal libc invariants 2021-08-24 16:41:15 +00:00
sanitizer_libc.h [compiler-rt] change internal internal libc invariants 2021-08-24 16:41:15 +00:00
sanitizer_libignore.cpp sanitizer_common: fix format string in LibIgnore 2021-08-16 09:45:42 +02:00
sanitizer_libignore.h sanitizer_common: remove BlockingMutex and RWMutex 2021-07-29 12:38:53 +02:00
sanitizer_linux.cpp [sanitizer] Fix build on FreeBSD RISC-V 2021-08-26 12:05:37 +01:00
sanitizer_linux.h [sanitizer] Simplify GetTls with dl_iterate_phdr on Linux and use it on musl/FreeBSD 2021-04-15 15:34:43 -07:00
sanitizer_linux_libcdep.cpp [sanitizer] Force TLS allocation on s390 2021-07-15 12:18:47 +02:00
sanitizer_linux_s390.cpp [compiler-rt] Use uname syscall in GetKernelAreaSize() 2020-03-26 13:35:09 +01:00
sanitizer_list.h
sanitizer_local_address_space_view.h [compiler-rt] NFC: Fix trivial typo 2021-09-04 14:12:58 +05:30
sanitizer_mac.cpp sanitizer_common: remove unnecessary GetMemoryProfile arg 2021-10-29 13:44:34 +02:00
sanitizer_mac.h [darwin] use new crash reporter api 2021-02-23 09:23:23 -08:00
sanitizer_mac_libcdep.cpp
sanitizer_malloc_mac.inc Revert "[sanitizer] Fix MAC build after D108163" 2021-08-16 15:46:37 -07:00
sanitizer_mutex.cpp sanitizer_common: fix deadlock detector output 2021-10-26 16:11:52 +02:00
sanitizer_mutex.h Disable SANITIZER_CHECK_DEADLOCKS on Darwin platforms. 2021-10-06 12:05:33 -07:00
sanitizer_netbsd.cpp sanitizer_common: sanitize time functions 2021-07-11 12:09:47 +02:00
sanitizer_openbsd.cpp [Sanitizers] Remove OpenBSD support (new attempt) 2020-10-20 11:16:09 +01:00
sanitizer_persistent_allocator.h [NFC][sanitizer] Add StackDepotTestOnlyUnmap 2021-10-16 13:47:57 -07:00
sanitizer_placement_new.h
sanitizer_platform.h [sanitizer] Add hexagon support to sanitizer-common 2021-08-17 19:59:24 -07:00
sanitizer_platform_interceptors.h [sanitizer] Add posix_spawn interceptor 2021-10-31 12:10:54 -07:00
sanitizer_platform_limits_freebsd.cpp [Sanitizers] intercept md5 and sha* apis on FreeBSD. 2021-10-06 06:01:50 +01:00
sanitizer_platform_limits_freebsd.h [Sanitizers] intercept md5 and sha* apis on FreeBSD. 2021-10-06 06:01:50 +01:00
sanitizer_platform_limits_linux.cpp [sanitizer] Add hexagon support to sanitizer-common 2021-08-17 19:59:24 -07:00
sanitizer_platform_limits_netbsd.cpp [Sanitizers] netbsd build fix due to wordexp interception. 2021-09-04 12:50:28 +01:00
sanitizer_platform_limits_netbsd.h [Sanitizers] netbsd build fix due to wordexp interception. 2021-09-04 12:50:28 +01:00
sanitizer_platform_limits_openbsd.cpp [Sanitizers] Remove OpenBSD support (new attempt) 2020-10-20 11:16:09 +01:00
sanitizer_platform_limits_openbsd.h [Sanitizers] Remove OpenBSD support (new attempt) 2020-10-20 11:16:09 +01:00
sanitizer_platform_limits_posix.cpp [MSAN] Fix wordexp interception when WRDE_DOOFFS is used 2021-08-24 14:30:09 -07:00
sanitizer_platform_limits_posix.h [Sanitizers] intercept netent, protoent and mincore on FreeBSD. 2021-09-10 19:24:51 +01:00
sanitizer_platform_limits_solaris.cpp [sanitizer_common] Define wordexp_wrde_dooffs for Solaris 2021-09-03 10:02:31 +02:00
sanitizer_platform_limits_solaris.h [sanitizer_common] Define wordexp_wrde_dooffs for Solaris 2021-09-03 10:02:31 +02:00
sanitizer_posix.cpp [sanitizer][NFC] Remove InternalScopedString::size() 2021-03-16 14:11:59 -07:00
sanitizer_posix.h [compiler-rt][hwasan] Check for SANITIZER_POSIX before including sanitizer_posix.h 2021-07-29 14:21:30 -07:00
sanitizer_posix_libcdep.cpp [Sanitizer] Allow setting the report path to create directory 2021-09-21 16:42:42 -07:00
sanitizer_printf.cpp [sanitizer] Improve VSNPrintf internal diagnostics 2021-08-14 18:34:26 -07:00
sanitizer_procmaps.h [Sanitizers] Remove OpenBSD support (new attempt) 2020-10-20 11:16:09 +01:00
sanitizer_procmaps_bsd.cpp [Sanitizers] Remove OpenBSD support (new attempt) 2020-10-20 11:16:09 +01:00
sanitizer_procmaps_common.cpp sanitizer_common: fix crashes in parsing of memory profiles 2021-10-29 14:03:12 +02:00
sanitizer_procmaps_fuchsia.cpp [sanitizer_common] Implement MemoryMappingLayout for Fuchsia 2020-01-24 16:35:43 -08:00
sanitizer_procmaps_linux.cpp
sanitizer_procmaps_mac.cpp [sanitizer][NFC] Remove InternalScopedString::size() 2021-03-16 14:11:59 -07:00
sanitizer_procmaps_solaris.cpp [sanitizer_common] Fix readlink error handling in sanitizer_procmaps_solaris.cpp 2021-11-02 22:06:17 +01:00
sanitizer_ptrauth.h [AArch64][compiler-rt] Strip PAC from the link register. 2021-03-18 22:01:50 +01:00
sanitizer_quarantine.h sanitizer_common: add thread safety annotations 2021-07-12 11:46:49 +02:00
sanitizer_report_decorator.h
sanitizer_ring_buffer.h
sanitizer_signal_interceptors.inc [ubsan] warn inside the sigaction interceptor if static linking is suspected, and continue instead of crashing on null deref 2021-09-01 12:36:48 -07:00
sanitizer_solaris.cpp sanitizer_common: replace RWMutex/BlockingMutex with Mutex 2021-07-28 15:10:24 +02:00
sanitizer_stackdepot.cpp [sanitizer] Remove tag from StackDepotNode 2021-10-24 13:38:22 -07:00
sanitizer_stackdepot.h [NFC][sanitizer] Add StackDepotTestOnlyUnmap 2021-10-16 13:47:57 -07:00
sanitizer_stackdepotbase.h [NFC][sanitizer] Add StackDepotTestOnlyUnmap 2021-10-16 13:47:57 -07:00
sanitizer_stacktrace.cpp [Sanitizer] Strip PAC from PC in StackTrace::GetNextInstructionPc() 2021-10-25 14:48:09 -07:00
sanitizer_stacktrace.h tsan: make obtaining current PC faster 2021-07-19 13:05:30 +02:00
sanitizer_stacktrace_libcdep.cpp sanitizer_common: fix format strings 2021-08-13 13:44:41 +02:00
sanitizer_stacktrace_printer.cpp sanitizer_common: fix format strings 2021-08-13 13:44:41 +02:00
sanitizer_stacktrace_printer.h [sanitizer] Skip stack symbolization when not required for print format 2020-10-07 15:38:52 -07:00
sanitizer_stacktrace_sparc.cpp [compiler-rt] NFC: Fix trivial typo 2021-09-04 14:12:58 +05:30
sanitizer_stoptheworld.h [sanitizer] Cleanup -Wnon-virtual-dtor warnings 2020-11-02 20:30:50 -08:00
sanitizer_stoptheworld_fuchsia.cpp [compiler-rt] Use empty SuspendedThreadsList for Fuchsia 2020-11-03 11:34:13 -08:00
sanitizer_stoptheworld_fuchsia.h [compiler-rt] Use empty SuspendedThreadsList for Fuchsia 2020-11-03 11:34:13 -08:00
sanitizer_stoptheworld_linux_libcdep.cpp sanitizer_common: remove BlockingMutex and RWMutex 2021-07-29 12:38:53 +02:00
sanitizer_stoptheworld_mac.cpp [sanitizer] Cleanup -Wnon-virtual-dtor warnings 2020-11-02 20:30:50 -08:00
sanitizer_stoptheworld_netbsd_libcdep.cpp sanitizer_common: remove BlockingMutex and RWMutex 2021-07-29 12:38:53 +02:00
sanitizer_suppressions.cpp [sanitizer][NFC] Remove InternalScopedString::size() 2021-03-16 14:11:59 -07:00
sanitizer_suppressions.h [UBSan][clang][compiler-rt] Applying non-zero offset to nullptr is undefined behaviour 2019-10-10 09:25:02 +00:00
sanitizer_symbolizer.cpp [NFC] Introduce a `LateInitialize()` method to `SymbolizerTool` that is called during the LateInitialize stage of the sanitizer runtimes. 2020-04-16 17:25:58 -07:00
sanitizer_symbolizer.h sanitizer_common: remove BlockingMutex and RWMutex 2021-07-29 12:38:53 +02:00
sanitizer_symbolizer_fuchsia.h
sanitizer_symbolizer_internal.h [compiler-rt] NFC: Fix trivial typo 2021-09-04 14:12:58 +05:30
sanitizer_symbolizer_libbacktrace.cpp
sanitizer_symbolizer_libbacktrace.h [sanitizer] Cleanup -Wnon-virtual-dtor warnings 2020-11-02 20:30:50 -08:00
sanitizer_symbolizer_libcdep.cpp sanitizer_common: remove BlockingMutex and RWMutex 2021-07-29 12:38:53 +02:00
sanitizer_symbolizer_mac.cpp [sanitizer] Cleanup -Wnon-virtual-dtor warnings 2020-11-02 20:30:50 -08:00
sanitizer_symbolizer_mac.h [sanitizer] Cleanup -Wnon-virtual-dtor warnings 2020-11-02 20:30:50 -08:00
sanitizer_symbolizer_markup.cpp [asan] Remove Asan, Ubsan support of RTEMS and Myriad 2021-06-15 12:59:05 -07:00
sanitizer_symbolizer_posix_libcdep.cpp [compiler-rt] PR#39514 Support versioned llvm-symbolizer binaries 2021-03-11 18:29:06 -08:00
sanitizer_symbolizer_report.cpp [compiler-rt] update detect_write_exec option for apple devices. 2021-10-28 17:08:23 +01:00
sanitizer_symbolizer_win.cpp [sanitizer] Remove max_len parameter from InternalScopedString 2021-03-17 16:57:09 -07:00
sanitizer_syscall_generic.inc [Sanitizers] Remove OpenBSD support (new attempt) 2020-10-20 11:16:09 +01:00
sanitizer_syscall_linux_aarch64.inc
sanitizer_syscall_linux_arm.inc
sanitizer_syscall_linux_hexagon.inc [sanitizer] Add hexagon support to sanitizer-common 2021-08-17 19:59:24 -07:00
sanitizer_syscall_linux_riscv64.inc [NFC] Fix banner 2020-10-09 10:00:11 +01:00
sanitizer_syscall_linux_x86_64.inc
sanitizer_syscalls_netbsd.inc [compiler-rt] [netbsd] Regenerate syscall hooks 2020-09-10 20:16:39 +02:00
sanitizer_termination.cpp msan: disble CHECK test on powerpc64 2021-10-25 19:38:27 +02:00
sanitizer_thread_registry.cpp sanitizer_common: remove BlockingMutex and RWMutex 2021-07-29 12:38:53 +02:00
sanitizer_thread_registry.h sanitizer_common: remove BlockingMutex and RWMutex 2021-07-29 12:38:53 +02:00
sanitizer_thread_safety.h tsan: lock ScopedErrorReportLock around fork 2021-07-15 21:00:11 +02:00
sanitizer_tls_get_addr.cpp Fix -Wformat warnings reported by GCC. 2021-11-04 08:51:43 +01:00
sanitizer_tls_get_addr.h [sanitizer] Make DTLS_on_tls_get_addr signal safer 2020-12-01 16:16:04 -08:00
sanitizer_type_traits.cpp
sanitizer_type_traits.h
sanitizer_unwind_linux_libcdep.cpp Move SanitizerInitializeUnwinder outside anonymous namespace. 2019-10-02 22:57:37 +00:00
sanitizer_unwind_win.cpp [compiler-rt] [sanitizer] Silence -Wframe-larger-than= for a few windows functions with large stack buffers 2021-01-08 22:54:03 +02:00
sanitizer_vector.h
sanitizer_win.cpp sanitizer_common: remove unnecessary GetMemoryProfile arg 2021-10-29 13:44:34 +02:00
sanitizer_win.h
sanitizer_win_defs.h [tsan, go] fix Go windows build 2019-10-07 23:11:07 +00:00
sanitizer_win_dll_thunk.cpp Remove NOLINTs from compiler-rt 2019-09-11 23:19:48 +00:00
sanitizer_win_dll_thunk.h
sanitizer_win_dynamic_runtime_thunk.cpp
sanitizer_win_weak_interception.cpp [sanitizer_common] Declare __sanitizer_on_print in Windows interception. 2019-10-02 22:00:29 +00:00
sanitizer_win_weak_interception.h
weak_symbols.txt