llvm-project/compiler-rt/test/dfsan
Aaron Ballman 7068aa9841 Strengthen -Wint-conversion to default to an error
Clang has traditionally allowed C programs to implicitly convert
integers to pointers and pointers to integers, despite it not being
valid to do so except under special circumstances (like converting the
integer 0, which is the null pointer constant, to a pointer). In C89,
this would result in undefined behavior per 3.3.4, and in C99 this rule
was strengthened to be a constraint violation instead. Constraint
violations are most often handled as an error.

This patch changes the warning to default to an error in all C modes
(it is already an error in C++). This gives us better security posture
by calling out potential programmer mistakes in code but still allows
users who need this behavior to use -Wno-error=int-conversion to retain
the warning behavior, or -Wno-int-conversion to silence the diagnostic
entirely.

Differential Revision: https://reviews.llvm.org/D129881
2022-07-22 15:24:54 -04:00
..
Inputs [DFSan] Add option for conditional callbacks. 2022-01-05 15:07:09 -08:00
CMakeLists.txt
atomic.cpp [dfsan] Add full fast8 support 2021-06-07 17:20:54 -07:00
basic.c [DFSan] Remove -dfsan-args-abi support in favor of TLS. 2021-10-08 11:18:36 -07:00
conditional_callbacks.c [DFSan] Add option for conditional callbacks. 2022-01-05 15:07:09 -08:00
conditional_callbacks_sig.c [DFSan] Add option for conditional callbacks. 2022-01-05 15:07:09 -08:00
custom.cpp [DFSan] Fix several bugs in dfsan custom callbacks test. 2022-03-08 14:26:28 -08:00
dfsan_get_track_origins.c [dfsan] Expose dfsan_get_track_origins to get origin tracking status 2021-06-29 20:32:39 +00:00
event_callbacks.c [dfsan] Add full fast8 support 2021-06-07 17:20:54 -07:00
fast8labels.c [dfsan] Add full fast8 support 2021-06-07 17:20:54 -07:00
flags.c [dfsan] Make warn_unimplemented off by default 2021-07-22 21:45:41 +00:00
flush.c [dfsan] Add full fast8 support 2021-06-07 17:20:54 -07:00
fncall.c [DFSan] Remove -dfsan-args-abi support in favor of TLS. 2021-10-08 11:18:36 -07:00
force_zero.c [DFSan] Add force_zero_label abilist option to DFSan. This can be used as a work-around for overtainting. 2021-09-17 12:57:40 -07:00
fork.cpp [dfsan] Add full fast8 support 2021-06-07 17:20:54 -07:00
gep.c Strengthen -Wint-conversion to default to an error 2022-07-22 15:24:54 -04:00
interceptors.c [dfsan] Add full fast8 support 2021-06-07 17:20:54 -07:00
lit.cfg.py [dfsan] Re-enable origin tracking test cases 2021-03-06 02:41:56 +00:00
lit.site.cfg.py.in
lookup_table.c [DFSan] Add dfsan-combine-taint-lookup-table option as work around for 2022-04-05 11:05:10 -07:00
mmap_at_init.c [C11/C2x] Change the behavior of the implicit function declaration warning 2022-04-20 11:30:12 -04:00
origin_add_label.c [dfsan] Add full fast8 support 2021-06-07 17:20:54 -07:00
origin_branch.c [dfsan] Add full fast8 support 2021-06-07 17:20:54 -07:00
origin_disabled.c [dfsan] Add full fast8 support 2021-06-07 17:20:54 -07:00
origin_id_stack_trace.c [DFSan] Add functions to print origin trace from origin id instead of address. 2021-12-22 16:45:54 -08:00
origin_invalid.c [DFSan] Change shadow and origin memory layouts to match MSan. 2021-06-25 17:00:38 -07:00
origin_ld_lost.c [dfsan] Add full fast8 support 2021-06-07 17:20:54 -07:00
origin_ldst.c [dfsan] Add full fast8 support 2021-06-07 17:20:54 -07:00
origin_limit.c [dfsan] Add full fast8 support 2021-06-07 17:20:54 -07:00
origin_memcpy.c [dfsan] Replace dfs$ prefix with .dfsan suffix 2021-06-17 22:42:47 -07:00
origin_memmove.c [dfsan] Replace dfs$ prefix with .dfsan suffix 2021-06-17 22:42:47 -07:00
origin_memset.c [dfsan] Add full fast8 support 2021-06-07 17:20:54 -07:00
origin_of_first_taint.c [DFSan] Make dfsan_read_origin_of_first_taint public. 2021-12-22 23:45:30 -08:00
origin_overlapped.c [dfsan] Add full fast8 support 2021-06-07 17:20:54 -07:00
origin_set_label.c [dfsan] Add full fast8 support 2021-06-07 17:20:54 -07:00
origin_stack_trace.c [dfsan] Replace dfs$ prefix with .dfsan suffix 2021-06-17 22:42:47 -07:00
origin_track_ld.c [dfsan] Replace dfs$ prefix with .dfsan suffix 2021-06-17 22:42:47 -07:00
origin_unaligned_memtrans.c [dfsan] Replace dfs$ prefix with .dfsan suffix 2021-06-17 22:42:47 -07:00
origin_untainted.c [dfsan] Add full fast8 support 2021-06-07 17:20:54 -07:00
origin_with_sigactions.c [dfsan] Replace dfs$ prefix with .dfsan suffix 2021-06-17 22:42:47 -07:00
origin_with_signals.cpp [dfsan] Replace dfs$ prefix with .dfsan suffix 2021-06-17 22:42:47 -07:00
pair.cpp [dfsan] Add full fast8 support 2021-06-07 17:20:54 -07:00
propagate.c [DFSan] Remove -dfsan-args-abi support in favor of TLS. 2021-10-08 11:18:36 -07:00
pthread.c [dfsan] Replace dfs$ prefix with .dfsan suffix 2021-06-17 22:42:47 -07:00
release_shadow_space.c [DFSan] Remove use of setarch in dfsan test. 2022-03-14 10:03:51 -07:00
sigaction.c Strengthen -Wint-conversion to default to an error 2022-07-22 15:24:54 -04:00
sigaction_stress_test.c [dfsan] Add full fast8 support 2021-06-07 17:20:54 -07:00
stack_trace.c [dfsan] Replace dfs$ prefix with .dfsan suffix 2021-06-17 22:42:47 -07:00
struct.c [dfsan] Add full fast8 support 2021-06-07 17:20:54 -07:00
threaded_flush.c [dfsan] Turn off all dfsan test cases on non x86_64 OSs 2021-05-05 05:30:53 +00:00
trace-cmp.c [dfsan] Turn off all dfsan test cases on non x86_64 OSs 2021-05-05 05:30:53 +00:00
vararg.c [DFSan] Remove -dfsan-args-abi support in favor of TLS. 2021-10-08 11:18:36 -07:00
write_callback.c [DFSan] Remove -dfsan-args-abi support in favor of TLS. 2021-10-08 11:18:36 -07:00