diff options
author | Alexey Samsonov <vonosmas@gmail.com> | 2014-10-13 23:59:00 +0000 |
---|---|---|
committer | Alexey Samsonov <vonosmas@gmail.com> | 2014-10-13 23:59:00 +0000 |
commit | eb47d8a2c880611d79a468d04f287e868b8e241a (patch) | |
tree | cba22a0d20aed83e80a543af4d842bd5e93cc560 /llvm/lib/CodeGen/DFAPacketizer.cpp | |
parent | 0809b2ddc3a8661a55f818dbed8ea71a86e3802a (diff) | |
download | llvm-eb47d8a2c880611d79a468d04f287e868b8e241a.zip llvm-eb47d8a2c880611d79a468d04f287e868b8e241a.tar.gz llvm-eb47d8a2c880611d79a468d04f287e868b8e241a.tar.bz2 |
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
Diffstat (limited to 'llvm/lib/CodeGen/DFAPacketizer.cpp')
0 files changed, 0 insertions, 0 deletions