diff options
| author | Artem Dergachev <artem.dergachev@gmail.com> | 2018-02-03 02:33:42 +0000 |
|---|---|---|
| committer | Artem Dergachev <artem.dergachev@gmail.com> | 2018-02-03 02:33:42 +0000 |
| commit | d8b6fbc0d0eb8582757a3ac1717daeb5ea253949 (patch) | |
| tree | 6d39426f1d6c9255c99dab0b7840a17fabc3be83 /clang/lib/StaticAnalyzer/Checkers/CMakeLists.txt | |
| parent | f892166a1d609fab55b380bd2f58ce9ab0089f6a (diff) | |
| download | bcm5719-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.txt | 1 |
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 |

