summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/Allocator.cpp
diff options
context:
space:
mode:
authorPeter Collingbourne <peter@pcc.me.uk>2013-08-22 20:08:08 +0000
committerPeter Collingbourne <peter@pcc.me.uk>2013-08-22 20:08:08 +0000
commit59b1262d012e0ed8ac3ef51f6abd15d5876ae148 (patch)
tree20d1c1c73463a9c99d3737400381628f503d0e40 /llvm/lib/Support/Allocator.cpp
parent3738445cdd4da3452d04fc09a8f5191267f6f706 (diff)
downloadbcm5719-llvm-59b1262d012e0ed8ac3ef51f6abd15d5876ae148.tar.gz
bcm5719-llvm-59b1262d012e0ed8ac3ef51f6abd15d5876ae148.zip
DataFlowSanitizer: Prefix the name of each instrumented function with "dfs$".
DFSan changes the ABI of each function in the module. This makes it possible for a function with the native ABI to be called with the instrumented ABI, or vice versa, thus possibly invoking undefined behavior. A simple way of statically detecting instances of this problem is to prepend the prefix "dfs$" to the name of each instrumented-ABI function. This will not catch every such problem; in particular function pointers passed across the instrumented-native barrier cannot be used on the other side. These problems could potentially be caught dynamically. Differential Revision: http://llvm-reviews.chandlerc.com/D1373 llvm-svn: 189052
Diffstat (limited to 'llvm/lib/Support/Allocator.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud