[PATCH] D47915: [asan] Handle 0 alignment in PosixMemalignFromLocalPool

Aleksey Shlyapnikov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 7 16:51:46 PDT 2018


alekseyshl added inline comments.


================
Comment at: compiler-rt/lib/asan/asan_malloc_linux.cc:54
 
-  CHECK(alignment >= kWordSize);
+  alignment = Max(alignment, kWordSize);
 
----------------
Actually, 0 alignment should have been rejected by CheckPosixMemalignAlignment. I'll add the check there.


Repository:
  rL LLVM

https://reviews.llvm.org/D47915





More information about the llvm-commits mailing list