summaryrefslogtreecommitdiffstats
path: root/clang/lib/StaticAnalyzer/Checkers/CMakeLists.txt
diff options
context:
space:
mode:
authorArtem Dergachev <artem.dergachev@gmail.com>2018-02-03 02:33:42 +0000
committerArtem Dergachev <artem.dergachev@gmail.com>2018-02-03 02:33:42 +0000
commitd8b6fbc0d0eb8582757a3ac1717daeb5ea253949 (patch)
tree6d39426f1d6c9255c99dab0b7840a17fabc3be83 /clang/lib/StaticAnalyzer/Checkers/CMakeLists.txt
parentf892166a1d609fab55b380bd2f58ce9ab0089f6a (diff)
downloadbcm5719-llvm-d8b6fbc0d0eb8582757a3ac1717daeb5ea253949.tar.gz
bcm5719-llvm-d8b6fbc0d0eb8582757a3ac1717daeb5ea253949.zip
[analyzer] Add a checker for mmap()s which are both writable and executable.
This is a security check which is disabled by default but will be enabled whenever the user consciously enables the security package. If mmap()ed memory is both writable and executable, it makes it easier for the attacker to execute arbitrary code when contents of this memory are compromised. Some applications require such mmap()s though, such as different sorts of JIT. Patch by David Carlier! Differential Revision: https://reviews.llvm.org/D42645 llvm-svn: 324166
Diffstat (limited to 'clang/lib/StaticAnalyzer/Checkers/CMakeLists.txt')
-rw-r--r--clang/lib/StaticAnalyzer/Checkers/CMakeLists.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/StaticAnalyzer/Checkers/CMakeLists.txt b/clang/lib/StaticAnalyzer/Checkers/CMakeLists.txt
index 7ab9c6114ea..1137032aacc 100644
--- a/clang/lib/StaticAnalyzer/Checkers/CMakeLists.txt
+++ b/clang/lib/StaticAnalyzer/Checkers/CMakeLists.txt
@@ -50,6 +50,7 @@ add_clang_library(clangStaticAnalyzerCheckers
MallocOverflowSecurityChecker.cpp
MallocSizeofChecker.cpp
MisusedMovedObjectChecker.cpp
+ MmapWriteExecChecker.cpp
MPI-Checker/MPIBugReporter.cpp
MPI-Checker/MPIChecker.cpp
MPI-Checker/MPIFunctionClassifier.cpp
OpenPOWER on IntegriCloud