[PATCH] [msan] Poison the entire stack frame with one memset

Evgeniy Stepanov eugenis at google.com
Mon Feb 16 07:18:05 PST 2015


Hi samsonov, kcc,

Fix current ineffective MSan function prologue by lumping all locals into a single alloca (a-la ASan, but without redzones) and poisoning it with a single memset call.

This sounds like it could share some code with ASan, but there are way too many little differencies between two tools, so I copied ASan implementation into MSan and greatly simplified it.

REPOSITORY
  rL LLVM

http://reviews.llvm.org/D7670

Files:
  lib/Transforms/Instrumentation/MemorySanitizer.cpp
  test/Instrumentation/MemorySanitizer/alloca.ll

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D7670.20032.patch
Type: text/x-patch
Size: 15478 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150216/5cc25444/attachment.bin>


More information about the llvm-commits mailing list