commit | a1a25c1afe38e59ffb342c24bb5bb10d05679df7 | [log] [tgz] |
---|---|---|
author | Alexey Samsonov <samsonov@google.com> | Fri Jun 08 14:04:04 2012 +0000 |
committer | Alexey Samsonov <samsonov@google.com> | Fri Jun 08 14:04:04 2012 +0000 |
tree | 4004c92a8ebab807e9bf3e4e4709ed722b84c6f6 | |
parent | e19cf55e85f47e158526a932838b26cdafacc37d [diff] |
[ASan] allow calls to memmove during rtl initialization git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@158201 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/asan/asan_interceptors.cc b/lib/asan/asan_interceptors.cc index 22f6c31..3ffb559 100644 --- a/lib/asan/asan_interceptors.cc +++ b/lib/asan/asan_interceptors.cc
@@ -439,6 +439,9 @@ } INTERCEPTOR(void*, memmove, void *to, const void *from, uptr size) { + if (asan_init_is_running) { + return REAL(memmove)(to, from, size); + } ENSURE_ASAN_INITED(); if (FLAG_replace_intrin) { ASAN_WRITE_RANGE(from, size);