]> git.ipfire.org Git - people/ms/gcc.git/commit
libstdc++: Fix size passed to operator delete [PR108097]
authorJonathan Wakely <jwakely@redhat.com>
Wed, 14 Dec 2022 11:58:05 +0000 (11:58 +0000)
committerJonathan Wakely <jwakely@redhat.com>
Wed, 14 Dec 2022 14:13:39 +0000 (14:13 +0000)
commite9d58614b0b8eebd64d568fa22cd31faaa5f8dce
treed6296d44f214b67bf4c463d4b4c2f30f12be037e
parent6340b1c2361979d120ba6fa3663a17a8cbb756a8
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)
libstdc++-v3/include/std/stacktrace