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

Walter Lee via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 7 17:13:44 PDT 2018


waltl abandoned this revision.
waltl added inline comments.


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



Repository:
  rL LLVM

https://reviews.llvm.org/D47915





More information about the llvm-commits mailing list