gcc/libsanitizer
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
..
asan libsanitizer: Tie the hwasan library into our build system 2020-11-25 16:35:33 +00:00
builtins
hwasan libsanitizer: Tie the hwasan library into our build system 2020-11-25 16:35:33 +00:00
include libsanitizer: merge from master. 2020-11-13 17:28:49 +01:00
interception libsanitizer: Tie the hwasan library into our build system 2020-11-25 16:35:33 +00:00
libbacktrace libsanitizer: Tie the hwasan library into our build system 2020-11-25 16:35:33 +00:00
lsan liblsan: build missing lsan_posix.cpp file 2021-01-26 14:14:40 +01:00
sanitizer_common libsanitizer: Tie the hwasan library into our build system 2020-11-25 16:35:33 +00:00
tsan libsanitizer: Tie the hwasan library into our build system 2020-11-25 16:35:33 +00:00
ubsan Fix UBSAN in __ubsan::Value::getSIntValue 2021-02-23 11:15:16 +01:00
acinclude.m4
aclocal.m4 Add `--with-toolexeclibdir=' configuration option 2020-01-24 11:24:25 +00:00
ChangeLog Daily bump. 2021-01-27 00:16:33 +00:00
config.h.in
configure Update GNU/Hurd configure support 2021-01-05 16:04:14 -07:00
configure.ac libsanitizer: Only build libhwasan when targeting AArch64 2020-11-25 16:35:35 +00:00
configure.tgt Darwin : Update libtool and dependencies for Darwin20 [PR97865] 2020-12-05 08:43:20 +00:00
HOWTO_MERGE Remove references to SVN in libsanitizer. 2020-05-29 11:50:54 +02:00
libsanitizer.spec.in libsanitizer: Tie the hwasan library into our build system 2020-11-25 16:35:33 +00:00
LICENSE.TXT
LOCAL_PATCHES libsanitizer: Add recently added commit to LOCAL_PATCHES 2020-11-25 16:39:11 +00:00
Makefile.am libsanitizer: Only build libhwasan when targeting AArch64 2020-11-25 16:35:35 +00:00
Makefile.in libsanitizer: Only build libhwasan when targeting AArch64 2020-11-25 16:35:35 +00:00
MERGE libsanitizer: add hwasan. 2020-11-25 16:35:30 +00:00
merge.sh libsanitizer: add hwasan. 2020-11-25 16:35:30 +00:00
README.gcc libsanitizer: add hwasan. 2020-11-25 16:35:30 +00:00

AddressSanitizer and ThreadSanitizer (https://github.com/google/sanitizers) are
projects initially developed by Google Inc.

Both tools consist of a compiler module and a run-time library.
The sources of the run-time library for these projects are hosted at
https://github.com/llvm/llvm-project in the following directories:
  compiler-rt/include/sanitizer
  compiler-rt/lib/sanitizer_common
  compiler-rt/lib/interception
  compiler-rt/lib/asan
  compiler-rt/lib/tsan
  compiler-rt/lib/lsan
  compiler-rt/lib/ubsan
  compiler-rt/lib/hwasan

Trivial and urgent fixes (portability, build fixes, etc.) may go directly to the
GCC tree.  All non-trivial changes, functionality improvements, etc. should go
through the upstream tree first and then be merged back to the GCC tree.
The merges from upstream should be done with the aid of the merge.sh script;
it will also update the file MERGE to contain the upstream revision
we merged with.