https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108097

--- Comment #11 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-12 branch has been updated by Jonathan Wakely
<r...@gcc.gnu.org>:

https://gcc.gnu.org/g:e9d58614b0b8eebd64d568fa22cd31faaa5f8dce

commit r12-8985-ge9d58614b0b8eebd64d568fa22cd31faaa5f8dce
Author: Jonathan Wakely <jwak...@redhat.com>
Date:   Wed Dec 14 11:58:05 2022 +0000

    libstdc++: Fix size passed to operator delete [PR108097]

    The number of elements gets stored in _M_capacity so use a separate
    variable for the number of bytes to allocate.

    libstdc++-v3/ChangeLog:

            PR libstdc++/108097
            * include/std/stacktrace (basic_stracktrace::_Impl): Do not
            multiply N by sizeof(value_type) when allocating.

    (cherry picked from commit 881c6cabce5d0b27285ed41bd6dabdf48848cce7)

Reply via email to