[llvm-bugs] [Bug 40607] [ubsan] False positive object-size error in constructors of classes with multiple virtual inheritance
via llvm-bugs
llvm-bugs at lists.llvm.org
Fri Sep 17 00:59:16 PDT 2021
https://bugs.llvm.org/show_bug.cgi?id=40607
maic <maic23 at live.de> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |FIXED
Status|NEW |RESOLVED
CC| |maic23 at live.de
--- Comment #2 from maic <maic23 at live.de> ---
Fixed between clang-9 and clang-11:
$ clang++-11 -std=c++11 -O2 -fsanitize=object-size ./2.cpp && ./a.out
$ clang++-9 -std=c++11 -O2 -fsanitize=object-size ./2.cpp && ./a.out
2.cpp:9:8: runtime error: constructor call on address 0x7ffc9fa7f7a8 with
insufficient space for an object of type 'D'
0x7ffc9fa7f7a8: note: pointer points here
00 00 00 00 c1 11 00 00 a0 04 00 00 00 00 00 00 00 00 00 00 d0 3f e5 2d 5b
7f 00 00 02 00 00 00
^
--
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/20210917/6b250cbb/attachment.html>
More information about the llvm-bugs
mailing list