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:11:13 +0000 (14:11 +0000)
commit881c6cabce5d0b27285ed41bd6dabdf48848cce7
tree120144de4b28ff24416eb315fba91a2747635264
parent049dccd080c6ad74a8d0923c57c8a488a9a18496
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.
libstdc++-v3/include/std/stacktrace