diff options
author | Matt Morehouse <mascasa@google.com> | 2020-08-19 15:07:17 -0700 |
---|---|---|
committer | Matt Morehouse <mascasa@google.com> | 2020-08-19 15:07:41 -0700 |
commit | 4deda57106f7c9b982a49cb907c33e3966c8de7f (patch) | |
tree | 2cb57197ebc2992f186a9b71b94037d7a3e92cf5 /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | e2645488ca3b18dfb4f5cc8d7494a208f89e91a0 (diff) | |
download | llvm-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