[llvm-commits] [compiler-rt] r152224 - /compiler-rt/trunk/lib/asan/asan_malloc_win.cc
Timur Iskhodzhanov
timurrrr at google.com
Wed Mar 7 03:19:27 PST 2012
Author: timurrrr
Date: Wed Mar 7 05:19:26 2012
New Revision: 152224
URL: http://llvm.org/viewvc/llvm-project?rev=152224&view=rev
Log:
[ASan/Win] Intercept _msize, required for running SQLite
Modified:
compiler-rt/trunk/lib/asan/asan_malloc_win.cc
Modified: compiler-rt/trunk/lib/asan/asan_malloc_win.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/asan_malloc_win.cc?rev=152224&r1=152223&r2=152224&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/asan_malloc_win.cc (original)
+++ compiler-rt/trunk/lib/asan/asan_malloc_win.cc Wed Mar 7 05:19:26 2012
@@ -48,6 +48,12 @@
GET_STACK_TRACE_HERE_FOR_MALLOC;
return asan_realloc(ptr, size, &stack);
}
+
+size_t _msize(void *ptr) {
+ GET_STACK_TRACE_HERE_FOR_MALLOC;
+ return asan_malloc_usable_size(ptr, &stack);
+}
+
} // extern "C"
using __interception::GetRealFunctionAddress;
More information about the llvm-commits
mailing list