| commit | eb47d8a2c880611d79a468d04f287e868b8e241a | [log] [tgz] |
|---|---|---|
| author | Alexey Samsonov <vonosmas@gmail.com> | Mon Oct 13 23:59:00 2014 +0000 |
| committer | Alexey Samsonov <vonosmas@gmail.com> | Mon Oct 13 23:59:00 2014 +0000 |
| tree | cba22a0d20aed83e80a543af4d842bd5e93cc560 | |
| parent | 0809b2ddc3a8661a55f818dbed8ea71a86e3802a [diff] |
Sanitize upcasts and conversion to virtual base. This change adds UBSan check to upcasts. Namely, when we perform derived-to-base conversion, we: 1) check that the pointer-to-derived has suitable alignment and underlying storage, if this pointer is non-null. 2) if vptr-sanitizer is enabled, and we perform conversion to virtual base, we check that pointer-to-derived has a matching vptr. llvm-svn: 219642