ubsan: When diagnosing something wrong somewhere in memory, emit a note
authorRichard Smith <richard-llvm@metafoo.co.uk>
Tue, 18 Dec 2012 06:30:32 +0000 (06:30 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Tue, 18 Dec 2012 06:30:32 +0000 (06:30 +0000)
commitcf56ebd52af784939aae6230db21c235a7379bc4
tree2418c919a187cc8538ab48c455ae91e1f7b74cf9
parentcb233428760f5837440cd95cd518cd821a86d56f
ubsan: When diagnosing something wrong somewhere in memory, emit a note
pointing at the bad location and a snippet of nearby memory values. This is
strictly best-effort; reading these bytes to display the note could lead to a
seg fault, and that's explicitly OK.

llvm-svn: 170415
compiler-rt/lib/ubsan/lit_tests/TypeCheck/misaligned.cpp
compiler-rt/lib/ubsan/lit_tests/TypeCheck/vptr.cpp
compiler-rt/lib/ubsan/ubsan_diag.cc
compiler-rt/lib/ubsan/ubsan_diag.h
compiler-rt/lib/ubsan/ubsan_handlers.cc
compiler-rt/lib/ubsan/ubsan_handlers_cxx.cc
compiler-rt/lib/ubsan/ubsan_type_hash.cc
compiler-rt/lib/ubsan/ubsan_type_hash.h