https://issues.dlang.org/show_bug.cgi?id=22219

Dlang Bot <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull

--- Comment #1 from Dlang Bot <[email protected]> ---
@iK4tsu updated dlang/druntime pull request #3545 "Fix Issue 22219 -
core.lifetime emplace is unsafe with void[] override" fixing this issue:

- core.lifetime: fix class only function emplace system cast from a void[]

  The emplace function is already making all the needed safety checks for
casting.
  The cast only happens if both the length and alignment are compliant with the
  type requested, allowing it to be safe.

  Fix Issue 22219 - core.lifetime emplace is unsafe with void[] override

  Signed-off-by: João Lourenço <[email protected]>

- core.lifetime: fix non class function emplace system casts from a void[]

  The emplace function is already making all the needed safety checks for
casting.
  The cast only happens if both the length and alignment are compliant with the
  type requested, allowing it to be safe.

  Fix Issue 22219 - core.lifetime emplace is unsafe with void[] override

  Signed-off-by: João Lourenço <[email protected]>

https://github.com/dlang/druntime/pull/3545

--

Reply via email to