Address MemorySanitizer mis-report on SYS_getrandom

This commit is contained in:
Sebastian Pipping 2017-06-15 23:13:47 +02:00
parent 60d00148b5
commit 2446329958
2 changed files with 7 additions and 1 deletions

View file

@ -0,0 +1,6 @@
# Line "hash_secret_salt = generate_hash_secret_salt(parser);"
# is mis-reported as use-of-uninitialized-value because
# its call to writeRandomBytes_getrandom uses syscall
# SYS_getrandom and MemorySanitizer does not seem to understand that
# as writing bytes to that memory (which it does).
fun:startParsing

View file

@ -55,7 +55,7 @@ main() {
;;
memory)
# http://clang.llvm.org/docs/MemorySanitizer.html
BASE_FLAGS+=" -fsanitize=memory -fno-omit-frame-pointer -g -O2"
BASE_FLAGS+=" -fsanitize=memory -fno-omit-frame-pointer -g -O2 -fsanitize-memory-track-origins -fsanitize-blacklist=memory-sanitizer-blacklist.txt"
;;
ncc)
# http://students.ceid.upatras.gr/~sxanth/ncc/