hanchenye-llvm-project/compiler-rt/lib/dfsan
Dmitry Vyukov f52726aae9 sanitizers: consistently check result of MmapFixedNoReserve
MmapFixedNoReserve does not terminate process on failure.
Failure to check its result and die will always lead to harder
to debug crashes later in execution. This was observed in Go
processes due to some address space conflicts.

Consistently check result of MmapFixedNoReserve.
While we are here also add warn_unused_result attribute
to prevent such bugs in future and change return type to bool
as that's what all callers want.

Reviewed in https://reviews.llvm.org/D49367

llvm-svn: 337531
2018-07-20 08:33:41 +00:00
..
scripts Add weak definitions of trace-cmp hooks to dfsan 2018-06-01 21:59:25 +00:00
.clang-format [sanitizer] Remove unneeded blank lines 2018-05-09 00:44:26 +00:00
CMakeLists.txt [CMake] Add compiler-rt header files to the list of sources for targets 2018-07-10 13:00:17 +00:00
dfsan.cc sanitizers: consistently check result of MmapFixedNoReserve 2018-07-20 08:33:41 +00:00
dfsan.h [compiler-rt] Do not introduce __sanitizer namespace globally 2016-09-15 21:02:18 +00:00
dfsan.syms.extra
dfsan_custom.cc Add weak definitions of trace-cmp hooks to dfsan 2018-06-01 21:59:25 +00:00
dfsan_flags.inc
dfsan_interceptors.cc [compiler-rt] Do not introduce __sanitizer namespace globally 2016-09-15 21:02:18 +00:00
dfsan_platform.h
done_abilist.txt [dfsan] add one more sanitizer-coverage hook to the whitelist 2018-05-09 18:35:09 +00:00
libc_ubuntu1404_abilist.txt