llvm-project/compiler-rt/lib/ubsan
Ivan Krasin 048155c399 UBSan: crash less often on corrupted Vtables.
Summary:
This CL adds a weak check for a Vtable prefix: for a well-formed
Vtable, we require the prefix to be within [-1<<20; 1<<20].

Practically, this solves most of the known cases when UBSan segfaults
without providing any useful diagnostics.

Reviewers: pcc

Subscribers: kubabrecka

Differential Revision: http://reviews.llvm.org/D19750

llvm-svn: 271560
2016-06-02 18:36:12 +00:00
..
CMakeLists.txt [cmake] Address Samsonov's post-commit review of r262723 2016-03-05 10:01:04 +00:00
ubsan.syms.extra Properly generate lists of exported symbols for sanitizer runtimes 2013-08-27 15:08:02 +00:00
ubsan_checks.inc [UBSan] Remove "-fsanitize=" prefix from ubsan_checks.inc. NFC. 2015-12-08 23:29:36 +00:00
ubsan_diag.cc [UBSan] Improve bufferization of UBSan error reports. 2016-03-11 00:37:02 +00:00
ubsan_diag.h [UBSan] Implement runtime suppressions (PR25066). 2015-12-18 19:56:42 +00:00
ubsan_flags.cc [sancov] common flags initialization. 2016-03-18 19:28:07 +00:00
ubsan_flags.h [UBSan] Embed UBSan into ASan runtime (compiler-rt part). 2015-04-01 22:42:36 +00:00
ubsan_flags.inc [UBSan] Add the ability to print more precise error kind in summary line. 2015-08-24 23:18:49 +00:00
ubsan_handlers.cc [cfi] Safe handling of unaddressable vtable pointers (compiler-rt). 2016-02-03 22:19:04 +00:00
ubsan_handlers.h [cfi] Safe handling of unaddressable vtable pointers (compiler-rt). 2016-02-03 22:19:04 +00:00
ubsan_handlers_cxx.cc UBSan: crash less often on corrupted Vtables. 2016-06-02 18:36:12 +00:00
ubsan_handlers_cxx.h [cfi] Cross-DSO CFI diagnostic mode (compiler-rt part) 2016-01-25 23:34:38 +00:00
ubsan_init.cc [ASan] Make binary name reader cross-platform. 2015-06-04 07:29:43 +00:00
ubsan_init.h [UBSan] Embed UBSan into ASan runtime (compiler-rt part). 2015-04-01 22:42:36 +00:00
ubsan_init_standalone.cc [UBSan] Add missing header that defines SANITIZER_CAN_USE_PREINIT_ARRAY 2015-05-11 21:06:49 +00:00
ubsan_platform.h [sanitizer] [SystemZ] Enable UBSan. 2016-04-15 22:25:04 +00:00
ubsan_type_hash.cc CFI: Get check-cfi passing on Windows. 2015-07-08 22:10:34 +00:00
ubsan_type_hash.h UBSan: crash less often on corrupted Vtables. 2016-06-02 18:36:12 +00:00
ubsan_type_hash_itanium.cc UBSan: crash less often on corrupted Vtables. 2016-06-02 18:36:12 +00:00
ubsan_type_hash_win.cc UBSan: Simplify logic for locating the RTTI object. 2015-07-08 23:22:39 +00:00
ubsan_value.cc Fix bad regression from r263077 when building with MSVC. 2016-03-12 01:57:31 +00:00
ubsan_value.h [UBSan] Explicitly list all supported OS/arch pairs supported by UBSan. 2015-03-26 17:26:04 +00:00