[all-commits] [llvm/llvm-project] 38ad96: [sanitizer] Fix shift UB in LEB128 test
Nikita Popov via All-commits
all-commits at lists.llvm.org
Wed Jun 8 05:21:44 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 38ad963cc9998c5b60bde8253670237eebc8ca74
https://github.com/llvm/llvm-project/commit/38ad963cc9998c5b60bde8253670237eebc8ca74
Author: Nikita Popov <npopov at redhat.com>
Date: 2022-06-08 (Wed, 08 Jun 2022)
Changed paths:
M compiler-rt/lib/sanitizer_common/tests/sanitizer_leb128_test.cpp
Log Message:
-----------
[sanitizer] Fix shift UB in LEB128 test
If u64 and uptr have the same size, then this will perform a shift
by the bitwidth, which is UB. We only need this code if uptr is
smaller than u64.
More information about the All-commits
mailing list