[PATCH] D14979: [asan] Correctly release memory allocated during early startup.

Yury Gribov via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 1 01:26:10 PST 2015


ygribov marked 3 inline comments as done.

================
Comment at: lib/asan/asan_malloc_linux.cc:73
@@ +72,3 @@
+  if (UNLIKELY(IsInCallocPool(ptr))) {
+    uptr offset = (uptr)calloc_memory_for_dlsym - (uptr)ptr;
+    uptr copy_size = Min(size, kCallocPoolSize - offset);
----------------
samsonov wrote:
> ptr - calloc_memory_for_dlsym here as well
Done.


Repository:
  rL LLVM

http://reviews.llvm.org/D14979





More information about the llvm-commits mailing list