commit | b41eaf777832fe7a8de763528c3b0662badd389d | [log] [tgz] |
---|---|---|
author | Kuba Brecka <kuba.brecka@gmail.com> | Mon Jun 27 15:57:08 2016 +0000 |
committer | Kuba Brecka <kuba.brecka@gmail.com> | Mon Jun 27 15:57:08 2016 +0000 |
tree | 75257fd21ab22b4ea189fdfaf2a193d279195577 | |
parent | ff74d2352ee3a3fdf302866290f1cbe3a66746c1 [diff] |
[asan] fix false dynamic-stack-buffer-overflow report with constantly-sized dynamic allocas, LLVM part See the bug report at https://github.com/google/sanitizers/issues/691. When a dynamic alloca has a constant size, ASan instrumentation will treat it as a regular dynamic alloca (insert calls to poison and unpoison), but the backend will turn it into a regular stack variable. The poisoning/unpoisoning is then broken. This patch will treat such allocas as static. Differential Revision: http://reviews.llvm.org/D21509 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@273888 91177308-0d34-0410-b5e6-96231b3b80d8