[PATCH] D27654: Stop intercepting mallinfo and mallopt on FreeBSD

Dimitry Andric via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Jan 28 11:20:11 PST 2017


dim updated this revision to Diff 86182.
dim added a comment.

Trying to fix the test case for Windows.

Apparently `lib/asan/asan_malloc_win.cc` has always had a wrapper
`cfree()` implementation, added by @timurrr.  ASan should not intercept
or provide that function, otherwise configuration tools such as cmake or
autoconf can incorrectly detect that `cfree` is valid and supported.

Let's just get rid of the wrapper.  I think this will fix the build bots
for Windows.


https://reviews.llvm.org/D27654

Files:
  lib/asan/asan_malloc_linux.cc
  lib/asan/asan_malloc_win.cc
  lib/lsan/lsan_interceptors.cc
  lib/sanitizer_common/sanitizer_platform_interceptors.h
  lib/sanitizer_common/tests/sanitizer_allocator_testlib.cc
  test/asan/TestCases/malloc-no-intercept.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D27654.86182.patch
Type: text/x-patch
Size: 9562 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170128/a3053a3b/attachment.bin>


More information about the llvm-commits mailing list