Fix sanitizer/67258 by cherry picking upstream patch
authorMarkus Trippelsdorf <markus@trippelsdorf.de>
Wed, 9 Sep 2015 16:34:59 +0000 (16:34 +0000)
committerMarkus Trippelsdorf <trippels@gcc.gnu.org>
Wed, 9 Sep 2015 16:34:59 +0000 (16:34 +0000)
commit1842a04ce06a470b731bc9a29bfec17e6e147c3f
treed7242b5c767c60e428b06eec2e0a7d94bbbb6465
parent34bc1d225c5041a789f3fc9386a43148f24c0446
Fix sanitizer/67258 by cherry picking upstream patch

PR sanitizer/67258
* ubsan/ubsan_type_hash.cc: Cherry pick upstream r244101.

Upstraem patch:
commit 1d2477faafda9ad2cc19927b3c31efd22747f013
Author: Alexey Samsonov <vonosmas@gmail.com>
Date:   Wed Aug 5 19:35:46 2015 +0000

    [UBSan] Fix UBSan-vptr false positive.

    Offset from vptr to the start of most-derived object can actually
    be positive in some virtual base class vtables.

    Patch by Stephan Bergmann!

    git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@244101 91177308-0d34-0410-b5e6-96231b3b80d8

From-SVN: r227591
gcc/testsuite/g++.dg/ubsan/vptr-10.C [new file with mode: 0644]
libsanitizer/ChangeLog
libsanitizer/ubsan/ubsan_type_hash.cc