diff options
author | Dmitry Vyukov <dvyukov@google.com> | 2018-07-20 08:33:41 +0000 |
---|---|---|
committer | Dmitry Vyukov <dvyukov@google.com> | 2018-07-20 08:33:41 +0000 |
commit | f52726aae910348a2f6d598b707aec263f7e67e2 (patch) | |
tree | bf6b8fd714ea68186342a63d084c5dc4b4cc39ae /libcxx/src/experimental/filesystem/operations.cpp | |
parent | 99337e246cc258e89dc68f0b0e654be89d010cf7 (diff) | |
download | bcm5719-llvm-f52726aae910348a2f6d598b707aec263f7e67e2.tar.gz bcm5719-llvm-f52726aae910348a2f6d598b707aec263f7e67e2.zip |
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
Diffstat (limited to 'libcxx/src/experimental/filesystem/operations.cpp')
0 files changed, 0 insertions, 0 deletions