003 File Manager
Current Path:
/usr/src/contrib/llvm-project/compiler-rt/lib/ubsan
usr
/
src
/
contrib
/
llvm-project
/
compiler-rt
/
lib
/
ubsan
/
📁
..
📄
ubsan.syms.extra
(10 B)
📄
ubsan_checks.inc
(3.71 KB)
📄
ubsan_diag.cpp
(14.53 KB)
📄
ubsan_diag.h
(7.57 KB)
📄
ubsan_diag_standalone.cpp
(1.24 KB)
📄
ubsan_flags.cpp
(2.26 KB)
📄
ubsan_flags.h
(1.28 KB)
📄
ubsan_flags.inc
(1.25 KB)
📄
ubsan_handlers.cpp
(32.22 KB)
📄
ubsan_handlers.h
(7.12 KB)
📄
ubsan_handlers_cxx.cpp
(7.2 KB)
📄
ubsan_handlers_cxx.h
(2.1 KB)
📄
ubsan_init.cpp
(1.79 KB)
📄
ubsan_init.h
(1.06 KB)
📄
ubsan_init_standalone.cpp
(977 B)
📄
ubsan_init_standalone_preinit.cpp
(1.04 KB)
📄
ubsan_interface.inc
(3.25 KB)
📄
ubsan_monitor.cpp
(2.67 KB)
📄
ubsan_monitor.h
(1.72 KB)
📄
ubsan_platform.h
(952 B)
📄
ubsan_signals_standalone.cpp
(2.46 KB)
📄
ubsan_signals_standalone.h
(775 B)
📄
ubsan_type_hash.cpp
(1.25 KB)
📄
ubsan_type_hash.h
(2.73 KB)
📄
ubsan_type_hash_itanium.cpp
(9.47 KB)
📄
ubsan_type_hash_win.cpp
(2.82 KB)
📄
ubsan_value.cpp
(5.21 KB)
📄
ubsan_value.h
(6.04 KB)
📄
ubsan_win_dll_thunk.cpp
(1.02 KB)
📄
ubsan_win_dynamic_runtime_thunk.cpp
(952 B)
📄
ubsan_win_weak_interception.cpp
(1.15 KB)
📄
weak_symbols.txt
(25 B)
Editing: ubsan_checks.inc
//===-- ubsan_checks.inc ----------------------------------------*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// // // List of checks handled by UBSan runtime. // //===----------------------------------------------------------------------===// #ifndef UBSAN_CHECK # error "Define UBSAN_CHECK prior to including this file!" #endif // UBSAN_CHECK(Name, SummaryKind, FSanitizeFlagName) // SummaryKind and FSanitizeFlagName should be string literals. UBSAN_CHECK(GenericUB, "undefined-behavior", "undefined") UBSAN_CHECK(NullPointerUse, "null-pointer-use", "null") UBSAN_CHECK(NullPointerUseWithNullability, "null-pointer-use", "nullability-assign") UBSAN_CHECK(NullptrWithOffset, "nullptr-with-offset", "pointer-overflow") UBSAN_CHECK(NullptrWithNonZeroOffset, "nullptr-with-nonzero-offset", "pointer-overflow") UBSAN_CHECK(NullptrAfterNonZeroOffset, "nullptr-after-nonzero-offset", "pointer-overflow") UBSAN_CHECK(PointerOverflow, "pointer-overflow", "pointer-overflow") UBSAN_CHECK(MisalignedPointerUse, "misaligned-pointer-use", "alignment") UBSAN_CHECK(AlignmentAssumption, "alignment-assumption", "alignment") UBSAN_CHECK(InsufficientObjectSize, "insufficient-object-size", "object-size") UBSAN_CHECK(SignedIntegerOverflow, "signed-integer-overflow", "signed-integer-overflow") UBSAN_CHECK(UnsignedIntegerOverflow, "unsigned-integer-overflow", "unsigned-integer-overflow") UBSAN_CHECK(IntegerDivideByZero, "integer-divide-by-zero", "integer-divide-by-zero") UBSAN_CHECK(FloatDivideByZero, "float-divide-by-zero", "float-divide-by-zero") UBSAN_CHECK(InvalidBuiltin, "invalid-builtin-use", "invalid-builtin-use") UBSAN_CHECK(InvalidObjCCast, "invalid-objc-cast", "invalid-objc-cast") UBSAN_CHECK(ImplicitUnsignedIntegerTruncation, "implicit-unsigned-integer-truncation", "implicit-unsigned-integer-truncation") UBSAN_CHECK(ImplicitSignedIntegerTruncation, "implicit-signed-integer-truncation", "implicit-signed-integer-truncation") UBSAN_CHECK(ImplicitIntegerSignChange, "implicit-integer-sign-change", "implicit-integer-sign-change") UBSAN_CHECK(ImplicitSignedIntegerTruncationOrSignChange, "implicit-signed-integer-truncation-or-sign-change", "implicit-signed-integer-truncation,implicit-integer-sign-change") UBSAN_CHECK(InvalidShiftBase, "invalid-shift-base", "shift-base") UBSAN_CHECK(InvalidShiftExponent, "invalid-shift-exponent", "shift-exponent") UBSAN_CHECK(OutOfBoundsIndex, "out-of-bounds-index", "bounds") UBSAN_CHECK(UnreachableCall, "unreachable-call", "unreachable") UBSAN_CHECK(MissingReturn, "missing-return", "return") UBSAN_CHECK(NonPositiveVLAIndex, "non-positive-vla-index", "vla-bound") UBSAN_CHECK(FloatCastOverflow, "float-cast-overflow", "float-cast-overflow") UBSAN_CHECK(InvalidBoolLoad, "invalid-bool-load", "bool") UBSAN_CHECK(InvalidEnumLoad, "invalid-enum-load", "enum") UBSAN_CHECK(FunctionTypeMismatch, "function-type-mismatch", "function") UBSAN_CHECK(InvalidNullReturn, "invalid-null-return", "returns-nonnull-attribute") UBSAN_CHECK(InvalidNullReturnWithNullability, "invalid-null-return", "nullability-return") UBSAN_CHECK(InvalidNullArgument, "invalid-null-argument", "nonnull-attribute") UBSAN_CHECK(InvalidNullArgumentWithNullability, "invalid-null-argument", "nullability-arg") UBSAN_CHECK(DynamicTypeMismatch, "dynamic-type-mismatch", "vptr") UBSAN_CHECK(CFIBadType, "cfi-bad-type", "cfi")
Upload File
Create Folder