gcc/libsanitizer/ubsan
Martin Liska e03e58c184 Fix UBSAN in __ubsan::Value::getSIntValue
/home/marxin/Programming/gcc2/libsanitizer/ubsan/ubsan_value.cpp:77:25: runtime error: left shift of 0x0000000000000000fffffffffffffffb by 96 places cannot be represented in type '__int128'
    #0 0x7ffff754edfe in __ubsan::Value::getSIntValue() const /home/marxin/Programming/gcc2/libsanitizer/ubsan/ubsan_value.cpp:77
    #1 0x7ffff7548719 in __ubsan::Value::isNegative() const /home/marxin/Programming/gcc2/libsanitizer/ubsan/ubsan_value.h:190
    #2 0x7ffff7542a34 in handleShiftOutOfBoundsImpl /home/marxin/Programming/gcc2/libsanitizer/ubsan/ubsan_handlers.cpp:338
    #3 0x7ffff75431b7 in __ubsan_handle_shift_out_of_bounds /home/marxin/Programming/gcc2/libsanitizer/ubsan/ubsan_handlers.cpp:370
    #4 0x40067f in main (/home/marxin/Programming/testcases/a.out+0x40067f)
    #5 0x7ffff72c8b24 in __libc_start_main (/lib64/libc.so.6+0x27b24)
    #6 0x4005bd in _start (/home/marxin/Programming/testcases/a.out+0x4005bd)

Differential Revision: https://reviews.llvm.org/D97263

Cherry-pick from 16ede0956cb1f4b692dfa619ccfa6ab1de28e19b.
2021-02-23 11:15:16 +01:00
..
libtool-version Update comment in libsanitizer/*/libtool-version files. 2019-11-20 14:52:05 +00:00
Makefile.am libsanitizer: use gnu++14 2020-06-09 10:07:24 +02:00
Makefile.in libsanitizer: Tie the hwasan library into our build system 2020-11-25 16:35:33 +00:00
ubsan_checks.inc libsanitizer: merge from master 2020-10-16 10:57:03 +02:00
ubsan_diag_standalone.cpp Libsanitizer merge from trunk r368656. 2019-08-14 08:47:11 +00:00
ubsan_diag.cpp Libsanitizer: merge from trunk with merge.sh. 2019-11-05 13:54:57 +00:00
ubsan_diag.h Libsanitizer merge from trunk r368656. 2019-08-14 08:47:11 +00:00
ubsan_flags.cpp libsanitizer: Apply local patches. 2020-11-13 17:29:28 +01:00
ubsan_flags.h libsanitizer: merge from master 2020-10-16 10:57:03 +02:00
ubsan_flags.inc Libsanitizer merge from trunk r368656. 2019-08-14 08:47:11 +00:00
ubsan_handlers_cxx.cpp Libsanitizer merge from trunk r368656. 2019-08-14 08:47:11 +00:00
ubsan_handlers_cxx.h Libsanitizer merge from trunk r368656. 2019-08-14 08:47:11 +00:00
ubsan_handlers.cpp libsanitizer: Apply local patches. 2020-11-13 17:29:28 +01:00
ubsan_handlers.h libsanitizer: Apply local patches. 2020-11-13 17:29:28 +01:00
ubsan_init_standalone_preinit.cpp Libsanitizer merge from trunk r368656. 2019-08-14 08:47:11 +00:00
ubsan_init_standalone.cpp Libsanitizer merge from trunk r368656. 2019-08-14 08:47:11 +00:00
ubsan_init.cpp Libsanitizer: merge from master. 2020-06-02 08:02:07 +02:00
ubsan_init.h Libsanitizer merge from trunk r368656. 2019-08-14 08:47:11 +00:00
ubsan_interface.inc libsanitizer: merge from master 2020-10-16 10:57:03 +02:00
ubsan_monitor.cpp Libsanitizer merge from trunk r368656. 2019-08-14 08:47:11 +00:00
ubsan_monitor.h Libsanitizer merge from trunk r368656. 2019-08-14 08:47:11 +00:00
ubsan_platform.h libsanitizer: Apply local patches. 2020-11-13 17:29:28 +01:00
ubsan_signals_standalone.cpp Libsanitizer: merge from trunk with merge.sh. 2019-11-05 13:54:57 +00:00
ubsan_signals_standalone.h Libsanitizer merge from trunk r368656. 2019-08-14 08:47:11 +00:00
ubsan_type_hash_itanium.cpp libsanitizer: merge from master. 2020-11-13 17:28:49 +01:00
ubsan_type_hash_win.cpp libsanitizer: merge from master. 2020-11-13 17:28:49 +01:00
ubsan_type_hash.cpp Libsanitizer merge from trunk r368656. 2019-08-14 08:47:11 +00:00
ubsan_type_hash.h Libsanitizer merge from trunk r368656. 2019-08-14 08:47:11 +00:00
ubsan_value.cpp Fix UBSAN in __ubsan::Value::getSIntValue 2021-02-23 11:15:16 +01:00
ubsan_value.h libsanitizer: merge from master 2020-10-16 10:57:03 +02:00
ubsan_win_dll_thunk.cpp Libsanitizer merge from trunk r368656. 2019-08-14 08:47:11 +00:00
ubsan_win_dynamic_runtime_thunk.cpp Libsanitizer merge from trunk r368656. 2019-08-14 08:47:11 +00:00
ubsan_win_weak_interception.cpp Libsanitizer merge from trunk r368656. 2019-08-14 08:47:11 +00:00