[PATCH] D130503: [ASan] Use stack safety analysis to optimize allocas instrumentation.

Vitaly Buka via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 26 17:19:13 PDT 2022


vitalybuka added a comment.

please rebase, i've improved the test



================
Comment at: llvm/test/Instrumentation/AddressSanitizer/asan-stack-safety.ll:19
 
 define i32 @load() sanitize_address {
   %buf = alloca [10 x i8], align 1
----------------
I believe all of existing tests are affected by the patch, but the signal is 
missing @__asan_stack_malloc

Then with this patch we don't have a case:
alloca is not save, but one of accesses is removed 


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D130503/new/

https://reviews.llvm.org/D130503



More information about the llvm-commits mailing list