Home
last modified time | relevance | path

Searched full:ubsan (Results 1 – 25 of 181) sorted by relevance

12345678

/external/compiler-rt/lib/ubsan/
DCMakeLists.txt36 add_custom_target(ubsan) target
37 set_target_properties(ubsan PROPERTIES FOLDER "Compiler-RT Misc")
45 # Common parts of UBSan runtime.
53 # Initializer of standalone UBSan runtime.
60 add_compiler_rt_runtime(clang_rt.ubsan
68 PARENT_TARGET ubsan)
72 # Common parts of UBSan runtime.
76 # C++-specific parts of UBSan runtime. Requires a C++ ABI library.
82 # Initializer of standalone UBSan runtime.
87 # Standalone UBSan runtimes.
[all …]
Dubsan_init.h10 // Initialization function for UBSan runtime.
18 // Initialize UBSan as a standalone tool. Typically should be called early
22 // Initialize UBSan as a standalone tool, if it hasn't been initialized before.
25 // Initializes UBSan as a plugin tool. This function should be called once
Dubsan_value.cc11 // the ubsan runtime.
39 UNREACHABLE("libclang_rt.ubsan was built without __int128 support"); in getSIntValue()
55 UNREACHABLE("libclang_rt.ubsan was built without __int128 support"); in getUIntValue()
/external/clang/test/CodeGen/
Dcatch-undef-behavior.c1 …linux-gnu | opt -instnamer -S | FileCheck %s --check-prefix=CHECK-COMMON --check-prefix=CHECK-UBSAN
6 // CHECK-UBSAN: @[[INT:.*]] = private unnamed_addr constant { i16, i16, [6 x i8] } { i16 0, i16 11,…
9 // CHECK-UBSAN: @[[LINE_100:.*]] = private unnamed_addr global {{.*}}, i32 100, i32 5 {{.*}} @[[INT…
10 // CHECK-UBSAN: @[[LINE_200:.*]] = {{.*}}, i32 200, i32 10 {{.*}}, i64 4, i8 0
11 // CHECK-UBSAN: @[[LINE_300:.*]] = {{.*}}, i32 300, i32 12 {{.*}} @{{.*}}, {{.*}} @{{.*}}
12 // CHECK-UBSAN: @[[LINE_400:.*]] = {{.*}}, i32 400, i32 12 {{.*}} @{{.*}}, {{.*}} @{{.*}}
13 // CHECK-UBSAN: @[[LINE_500:.*]] = {{.*}}, i32 500, i32 10 {{.*}} @{{.*}}, i64 4, i8 0 }
14 // CHECK-UBSAN: @[[LINE_600:.*]] = {{.*}}, i32 600, i32 3 {{.*}} @{{.*}}, i64 4, i8 1 }
16 // CHECK-UBSAN: @[[STRUCT_S:.*]] = private unnamed_addr constant { i16, i16, [11 x i8] } { i16 -1, …
18 // CHECK-UBSAN: @[[LINE_700:.*]] = {{.*}}, i32 700, i32 14 {{.*}} @[[STRUCT_S]], i64 4, i8 3 }
[all …]
Dunsigned-trapv.c16 // TRAPV-NOT: ubsan in test_signed()
19 // BOTH-NOT: ubsan in test_signed()
31 // UNSIGNED: ubsan in test_unsigned()
35 // BOTH: ubsan in test_unsigned()
Dubsan-strip-path-components.cpp13 …vate unnamed_addr constant [{{.*}} x i8] c"{{.*test(.|\\5C)CodeGen(.|\\5C)ubsan-strip-path-compone…
16 …unnamed_addr constant [{{.*}} x i8] c"{{(.:|/)([^\\/]*(/|\\5C))}}[[REST:.*ubsan-strip-path-compone…
19 …]+]] = private unnamed_addr constant [{{.*}} x i8] c"CodeGen{{/|\\5C}}ubsan-strip-path-compone…
20 // LAST-ONLY: @[[SRC:[0-9.a-zA-Z_]+]] = private unnamed_addr constant [{{.*}} x i8] c"ubsan-stri…
/external/google-fruit/extras/scripts/
Dtravis_yml_generator.py30 def determine_tests(asan, ubsan, smoke_tests, use_precompiled_headers_in_tests, exclude_tests, argument
37 if ubsan:
41 if ubsan and not asan:
42 raise Exception('Enabling UBSan but not ASan is not currently supported.')
70 def add_ubuntu_tests(ubuntu_version, compiler, os='linux', stl=None, asan=True, ubsan=True, argument
82 tests = determine_tests(asan, ubsan, smoke_tests,
97 def add_osx_tests(compiler, xcode_version=None, stl=None, asan=True, ubsan=True, argument
109 tests = determine_tests(asan, ubsan, smoke_tests,
140 # TODO: re-enable ASan/UBSan once they work in Travis CI. ATM (as of 18 November 2017) they fail du…
141 add_ubuntu_tests(ubuntu_version='18.10', compiler='gcc-8', asan=False, ubsan=False, smoke_tests=['D…
[all …]
/external/clang/test/Driver/
Dsanitizer-ld.c195 // RUN: | FileCheck --check-prefix=CHECK-UBSAN-LINUX %s
196 // CHECK-UBSAN-LINUX: "{{.*}}ld{{(.exe)?}}"
197 // CHECK-UBSAN-LINUX-NOT: libclang_rt.asan
198 // CHECK-UBSAN-LINUX-NOT: libclang_rt.ubsan_standalone_cxx
199 // CHECK-UBSAN-LINUX: "-whole-archive" "{{.*}}libclang_rt.ubsan_standalone-i386.a" "-no-whole-archi…
200 // CHECK-UBSAN-LINUX-NOT: libclang_rt.asan
201 // CHECK-UBSAN-LINUX-NOT: libclang_rt.ubsan_standalone_cxx
202 // CHECK-UBSAN-LINUX-NOT: "-lstdc++"
203 // CHECK-UBSAN-LINUX: "-lpthread"
208 // RUN: | FileCheck --check-prefix=CHECK-UBSAN-LINUX-LINK-CXX %s
[all …]
Ddarwin-sanitizer-ld.c26 // RUN: | FileCheck --check-prefix=CHECK-UBSAN %s
28 // CHECK-UBSAN: "{{.*}}ld{{(.exe)?}}"
29 // CHECK-UBSAN-NOT: "-lstdc++"
30 // CHECK-UBSAN-NOT: "-lc++"
31 // CHECK-UBSAN: libclang_rt.ubsan_osx_dynamic.dylib"
32 // CHECK-UBSAN: "-rpath" "@executable_path"
33 // CHECK-UBSAN: "-rpath" "{{.*}}lib{{.*}}darwin"
45 // RUN: | FileCheck --check-prefix=CHECK-DYN-UBSAN %s
47 // CHECK-DYN-UBSAN: "{{.*}}ld{{(.exe)?}}"
48 // CHECK-DYN-UBSAN: "-dylib"
[all …]
/external/compiler-rt/test/ubsan/
Dlit.common.cfg18 # Choose between standalone and UBSan+ASan modes.
21 config.name = 'UBSan-Standalone-' + config.target_arch
22 config.available_features.add("ubsan-standalone")
25 config.name = 'UBSan-ASan-' + config.target_arch
26 config.available_features.add("ubsan-asan")
30 config.name = 'UBSan-MSan-' + config.target_arch
31 config.available_features.add("ubsan-msan")
34 config.name = 'UBSan-TSan-' + config.target_arch
35 config.available_features.add("ubsan-tsan")
38 lit_config.fatal("Unknown UBSan test mode: %r" % ubsan_lit_test_mode)
DCMakeLists.txt32 add_ubsan_testsuite("Standalone" ubsan ${arch})
35 # TODO(wwchrome): Re-enable ubsan for asan win 64-bit when ready.
36 # Disable ubsan with AddressSanitizer tests for Windows 64-bit.
49 add_lit_testsuite(check-ubsan "Running UndefinedBehaviorSanitizer tests"
52 set_target_properties(check-ubsan PROPERTIES FOLDER "Compiler-RT Misc")
/external/grpc-grpc/tools/
Dbazel.rc37 build:ubsan --strip=never
38 build:ubsan --copt -fsanitize-coverage=edge
39 build:ubsan --copt -fsanitize=undefined
40 build:ubsan --copt -fno-omit-frame-pointer
41 build:ubsan --copt -DGRPC_UBSAN
42 build:ubsan --copt -DNDEBUG
43 build:ubsan --copt -fno-sanitize=function,vptr
44 build:ubsan --linkopt -fsanitize=undefined
45 build:ubsan --action_env=UBSAN_OPTIONS=halt_on_error=1:print_stacktrace=1:suppressions=test/core/ut…
/external/clang/docs/
DUndefinedBehaviorSanitizer.rst11 UndefinedBehaviorSanitizer (UBSan) is a fast undefined behavior detector.
12 UBSan modifies the program at compile-time to catch various kinds of undefined
20 See the full list of available :ref:`checks <ubsan-checks>` below.
22 UBSan has an optional run-time library which provides better error reporting.
35 executable is linked with proper UBSan runtime libraries. You can use ``clang``
50 You can enable only a subset of :ref:`checks <ubsan-checks>` offered by UBSan,
55 * execute a trap instruction (doesn't require UBSan run-time support).
139 If you want UBSan to print symbolized stack trace for each error report, you
157 You disable UBSan checks for particular functions with
177 Sometimes you can suppress UBSan error reports for specific files, functions,
[all …]
/external/pdfium/third_party/agg23/
DREADME.pdfium17 0002-ubsan-error-fixes.path: Fix UBSan errors for overflows.
18 0003-ubsan-render-line-error.patch: Fix UBSan overflow error in render_line.
/external/swiftshader/third_party/subzero/Makefile.standalone-help/
Dhelp.txt15 UBSAN=1
16 Enable UBSan support, i.e. -fsanitize=undefined
18 Enable UBSan support, trapping on errors
/external/libyuv/files/tools/ubsan/
Dblacklist.txt2 # UBSan blacklist.
5 # YASM does some funny things that UBsan doesn't like.
18 # V8 UBsan supressions, commented out for now since we are ignorning v8
53 # Maybe UBSan itself can be improved here?
74 # libc++ __tree and map are not UBSAN clean
Dvptr_blacklist.txt2 # UBSan vptr blacklist.
82 # Ubsan vptr needs typeinfo on the target class, but it looks like typeinfo is
99 # LLVM is not UBSan vptr clean.
103 # UBSan seems to be emit false positives when virtual base classes are
109 # UBsan is unable to handle static_cast<A*>(nullptr) and crashes on SIGSEGV.
120 # UBsan goes into an infinite recursion when __dynamic_cast instrumented with
/external/syzkaller/pkg/report/testdata/linux/report/
D421 TITLE: UBSAN: Undefined behaviour in kernel/time/hrtimer.c:LINE
4 [ 50.583499] UBSAN: Undefined behaviour in kernel/time/hrtimer.c:310:16
D401 TITLE: UBSAN: Undefined behaviour in drivers/usb/core/devio.c:LINE
4 [ 4.556972] UBSAN: Undefined behaviour in drivers/usb/core/devio.c:1517:25
D411 TITLE: UBSAN: Undefined behaviour in ./arch/x86/include/asm/atomic.h:LINE
4 [ 3.805453] UBSAN: Undefined behaviour in ./arch/x86/include/asm/atomic.h:156:2
/external/compiler-rt/test/ubsan/TestCases/Misc/
Dcoverage-levels.cc24 // XFAIL: ubsan-tsan
39 // FIXME: Currently, coverage instrumentation kicks in after ubsan, so we get
41 // FIXME: Currently, ubsan with -fno-sanitize-recover and w/o asan will fail
/external/llvm/lib/Fuzzer/test/ubsan/
DCMakeLists.txt1 # These tests are instrumented with ubsan in non-recovery mode.
11 add_libfuzzer_test(${Test}-Ubsan SOURCES ../${Test}.cpp)
/external/v8/tools/ubsan/
Dvptr_blacklist.txt2 # UBSan vptr blacklist.
9 # UBsan goes into an infinite recursion when __dynamic_cast instrumented with
/external/webrtc/tools/ubsan/
Dblacklist.txt2 # UBSan blacklist.
9 # YASM does some funny things that UBsan doesn't like.
/external/libyuv/files/tools_libyuv/ubsan/
Dblacklist.txt2 # UBSan blacklist.
9 # YASM does some funny things that UBsan doesn't like.

12345678