[msan] Handle param-tls overflow.
authorEvgeniy Stepanov <eugeni.stepanov@gmail.com>
Wed, 22 Oct 2014 00:12:40 +0000 (00:12 +0000)
committerEvgeniy Stepanov <eugeni.stepanov@gmail.com>
Wed, 22 Oct 2014 00:12:40 +0000 (00:12 +0000)
commit61ed31cad7dec7ac250dc20a12314e746fa97329
tree563d7a68ca9bdfebee52f186a0ba5edc52de277d
parentec4e9248361bd6ddbecb27b9219f41d93ba0c7f5
[msan] Handle param-tls overflow.

ParamTLS (shadow for function arguments) is of limited size. This change
makes all arguments that do not fit unpoisoned, and avoids writing
past the end of a TLS buffer.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@220351 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Instrumentation/MemorySanitizer.cpp