[llvm-bugs] [Bug 26095] -fsanitize=object-size checks sizes too eagerly

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Jan 11 15:07:10 PST 2016


https://llvm.org/bugs/show_bug.cgi?id=26095

George Burgess <george.burgess.iv at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |INVALID

--- Comment #3 from George Burgess <george.burgess.iv at gmail.com> ---
After consulting someone with far more knowledge of C++ than I, it seems that
the example program does have UB; casting from base->derived using static_cast
is UB if the pointee isn't an instance of derived. Oops. :)

Closing this.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20160111/89165114/attachment.html>


More information about the llvm-bugs mailing list