about summary refs log tree commit diff
path: root/src/test/codegen/src-hash-algorithm
diff options
context:
space:
mode:
authorTomasz Miąsko <tomasz.miasko@gmail.com>2020-01-27 00:00:00 +0000
committerTomasz Miąsko <tomasz.miasko@gmail.com>2020-01-27 16:56:25 +0100
commit08a1c566a792dcf9657d293155f7ada87746bb65 (patch)
treea362669b9a1a1bd8d61a4e4b66555433af913c15 /src/test/codegen/src-hash-algorithm
parent1d5f6d41e140a3d6a9c6584d555bc09f10222d24 (diff)
downloadrust-08a1c566a792dcf9657d293155f7ada87746bb65.tar.gz
rust-08a1c566a792dcf9657d293155f7ada87746bb65.zip
Detect use-after-scope bugs with AddressSanitizer
Enable use-after-scope checks by default when using AddressSanitizer.
They allow to detect incorrect use of stack objects after their scope
have already ended. The detection is based on LLVM lifetime intrinsics.

To facilitate the use of this functionality, the lifetime intrinsics are
now emitted regardless of optimization level if enabled sanitizer makes
use of them.
Diffstat (limited to 'src/test/codegen/src-hash-algorithm')
0 files changed, 0 insertions, 0 deletions