summaryrefslogtreecommitdiffstats
path: root/libcxx/src/experimental/filesystem/operations.cpp
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2018-07-20 08:33:41 +0000
committerDmitry Vyukov <dvyukov@google.com>2018-07-20 08:33:41 +0000
commitf52726aae910348a2f6d598b707aec263f7e67e2 (patch)
treebf6b8fd714ea68186342a63d084c5dc4b4cc39ae /libcxx/src/experimental/filesystem/operations.cpp
parent99337e246cc258e89dc68f0b0e654be89d010cf7 (diff)
downloadbcm5719-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
OpenPOWER on IntegriCloud