Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion compiler-rt/lib/asan/asan_interceptors_memintrinsics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,10 @@ using namespace __asan;
if (LIKELY(replace_intrin_cached)) { \
ASAN_READ_RANGE(ctx, from, size); \
ASAN_WRITE_RANGE(ctx, to, size); \
} else if (UNLIKELY(!AsanInited())) { \
return internal_memmove(to, from, size); \
} \
return internal_memmove(to, from, size); \
return REAL(memmove)(to, from, size); \
} while (0)

void *__asan_memcpy(void *to, const void *from, uptr size) {
Expand Down
1 change: 1 addition & 0 deletions compiler-rt/lib/asan/asan_interceptors_memintrinsics.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

DECLARE_REAL(void *, memcpy, void *to, const void *from, SIZE_T size)
DECLARE_REAL(void *, memset, void *block, int c, SIZE_T size)
DECLARE_REAL(void *, memmove, void *to, const void *from, SIZE_T size)

namespace __asan {

Expand Down
Loading