summaryrefslogtreecommitdiffstats
path: root/llvm/unittests/Support/MemoryBufferTest.cpp
diff options
context:
space:
mode:
authorXinliang David Li <davidxl@google.com>2015-11-17 03:47:21 +0000
committerXinliang David Li <davidxl@google.com>2015-11-17 03:47:21 +0000
commitb8c3ad1d0561f5ce4e3e8042637b9e9736ab4887 (patch)
tree772364c74f4a2d426f68ec6e865f797caff27156 /llvm/unittests/Support/MemoryBufferTest.cpp
parent055a08a4887d8e7108c3893e71bc1d8ad56c9585 (diff)
downloadbcm5719-llvm-b8c3ad1d0561f5ce4e3e8042637b9e9736ab4887.tar.gz
bcm5719-llvm-b8c3ad1d0561f5ce4e3e8042637b9e9736ab4887.zip
Fix unaligned memory read issue exposed by ubsan
Indexed profile data as designed today does not guarantee counter data to be well aligned, so reading needs to use the slower form (with memcpy). This is less than ideal and should be improved in the future (i.e., with fixed length function key instead of variable length name key). llvm-svn: 253309
Diffstat (limited to 'llvm/unittests/Support/MemoryBufferTest.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud