[libcxx-commits] [libcxx] [libc++] Fix use-after-free during self-assignment (PR #225296)

Nikolas Klauser via libcxx-commits libcxx-commits at lists.llvm.org
Tue Sep 22 00:51:59 PDT 2026


https://github.com/philnik777 commented:

Can't you just use `__grow_by_and_replace(__cap, __n - __cap, __sz, 0, __sz, __n, __first);`?

https://github.com/llvm/llvm-project/pull/225296


More information about the libcxx-commits mailing list