[PATCH] D27052: [compiler-rt][asan] Fix overlaping parameters for memmove/memcpy on windows.

Filipe Cabecinhas via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 23 11:15:06 PST 2016


filcab added a comment.

Which function is that code calling, though? memcpy or memmove?

Shouldn't the alias be taken care of by this? (in `asan_interceptors.cc`)

  if (PLATFORM_HAS_DIFFERENT_MEMCPY_AND_MEMMOVE) {
    // In asan, REAL(memmove) is not used, but it is used in msan.
    ASAN_INTERCEPT_FUNC(memcpy);
  } else {
    ASSIGN_REAL(memcpy, memmove);
  }


https://reviews.llvm.org/D27052





More information about the llvm-commits mailing list