aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorMatt Morehouse <mascasa@google.com>2020-08-19 15:07:17 -0700
committerMatt Morehouse <mascasa@google.com>2020-08-19 15:07:41 -0700
commit4deda57106f7c9b982a49cb907c33e3966c8de7f (patch)
tree2cb57197ebc2992f186a9b71b94037d7a3e92cf5 /clang/lib/CodeGen/CodeGenModule.cpp
parente2645488ca3b18dfb4f5cc8d7494a208f89e91a0 (diff)
downloadllvm-4deda57106f7c9b982a49cb907c33e3966c8de7f.zip
llvm-4deda57106f7c9b982a49cb907c33e3966c8de7f.tar.gz
llvm-4deda57106f7c9b982a49cb907c33e3966c8de7f.tar.bz2
[DFSan] Handle mmap() calls before interceptors are installed.
InitializeInterceptors() calls dlsym(), which calls calloc(). Depending on the allocator implementation, calloc() may invoke mmap(), which results in a segfault since REAL(mmap) is still being resolved. We fix this by doing a direct syscall if interceptors haven't been fully resolved yet. Reviewed By: vitalybuka Differential Revision: https://reviews.llvm.org/D86168
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions