summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support
diff options
context:
space:
mode:
authorKostya Serebryany <kcc@google.com>2013-02-19 11:29:21 +0000
committerKostya Serebryany <kcc@google.com>2013-02-19 11:29:21 +0000
commit3ece9beaf195950480281f131056232a66c3349a (patch)
tree5e0013448aa1187977367463b6e1c2dffe01088c /llvm/lib/Support
parent8b6a4de64a13a57c8c3233b4fc6f74d892c6b2b1 (diff)
downloadbcm5719-llvm-3ece9beaf195950480281f131056232a66c3349a.tar.gz
bcm5719-llvm-3ece9beaf195950480281f131056232a66c3349a.zip
[asan] instrument memory accesses with unusual sizes
This patch makes asan instrument memory accesses with unusual sizes (e.g. 5 bytes or 10 bytes), e.g. long double or packed structures. Instrumentation is done with two 1-byte checks (first and last bytes) and if the error is found __asan_report_load_n(addr, real_size) or __asan_report_store_n(addr, real_size) is called. Also, call these two new functions in memset/memcpy instrumentation. asan-rt part will follow. llvm-svn: 175507
Diffstat (limited to 'llvm/lib/Support')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud