llvm-6502/lib
Kostya Serebryany 6ecccdbb2b [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.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@175507 91177308-0d34-0410-b5e6-96231b3b80d8
2013-02-19 11:29:21 +00:00
..
Analysis Teach the DataLayout aware constant folder to be much more aggressive towards 2013-02-14 03:23:37 +00:00
Archive
AsmParser Update comment. 2013-02-14 20:44:07 +00:00
Bitcode Simplify code. No functionality change. 2013-02-19 09:48:30 +00:00
CodeGen More const correcting of stack coloring. 2013-02-19 06:02:40 +00:00
DebugInfo Make helpers static. Add missing include so LLVMInitializeObjCARCOpts gets C linkage. 2013-02-15 12:30:38 +00:00
ExecutionEngine [patch] bug 15055 Add Unistd.h to OProfileWrapper.cpp 2013-02-07 20:43:33 +00:00
IR Futureproof AttrBuild if we ever have more than 64 attr enum values. 2013-02-18 12:09:51 +00:00
Linker Add static cast to unsigned char whenever a character classification function is called with a signed char argument, in order to avoid assertions in Windows Debug configuration. 2013-02-12 21:21:59 +00:00
MC MCParser: Reject .balign with non-pow2 alignments. 2013-02-16 15:00:16 +00:00
Object Add static cast to unsigned char whenever a character classification function is called with a signed char argument, in order to avoid assertions in Windows Debug configuration. 2013-02-12 21:21:59 +00:00
Option
Support Make helpers static. Add missing include so LLVMInitializeObjCARCOpts gets C linkage. 2013-02-15 12:30:38 +00:00
TableGen Make helpers static. Add missing include so LLVMInitializeObjCARCOpts gets C linkage. 2013-02-15 12:30:38 +00:00
Target Fix capitalization in comment to match function name. 2013-02-19 07:43:59 +00:00
Transforms [asan] instrument memory accesses with unusual sizes 2013-02-19 11:29:21 +00:00
CMakeLists.txt
LLVMBuild.txt
Makefile