[llvm-bugs] [Bug 48993] Recent shared_ptr storage change (https://reviews.llvm.org/D91201) causes CFI cast failures during make_shared

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Feb 3 11:06:36 PST 2021


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

Reid Kleckner <rnk at google.com> changed:

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

--- Comment #5 from Reid Kleckner <rnk at google.com> ---
I think we can declare this fixed, but this issue is likely to pop up again in
other places because std::construct_at expects T*, and that requires casting a
pointer to uninitialized memory. The old way of doing this, placement new,
expects a void*. Adding a new CFI testing configuration for libc++ will be the
best way to detect such issues in the future.

-- 
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/20210203/5d099af9/attachment.html>


More information about the llvm-bugs mailing list