summaryrefslogtreecommitdiff
path: root/test/msan/realloc-origin.cc
AgeCommit message (Collapse)Author
2015-03-02[MSan] Remove explicit -m64 from RUN lines.Alexey Samsonov
Target-specific flags should usually be configured by CMake/lit. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@230999 91177308-0d34-0410-b5e6-96231b3b80d8
2015-01-22[msan] Relax CHECK conditions in 2 tests.Evgeniy Stepanov
Sometimes malloc/realloc/etc are symbolized as __interceptor_malloc/realloc/etc. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@226803 91177308-0d34-0410-b5e6-96231b3b80d8
2015-01-21[msan] Fix origins in realloc.Evgeniy Stepanov
Fixes 2 issues in origins arising from realloc() calls: * In the in-place grow case origin for the new memory is not set at all. * In the copy-realloc case __msan_memcpy is used, which unwinds stack from inside the MSan runtime. This does not generally work (as we may be built w/o frame pointers), and produces "bad" stack trace anyway, with several uninteresting (internal) frames on top. This change also makes realloc() honor "zeroise" and "poison_in_malloc" flags. See https://code.google.com/p/memory-sanitizer/issues/detail?id=73. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@226674 91177308-0d34-0410-b5e6-96231b3b80d8