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

Oliver Hunt via libcxx-commits libcxx-commits at lists.llvm.org
Tue Sep 22 16:48:06 PDT 2026


ojhunt wrote:

> ```c++
> str.assign(str.data(), str.data() + str.size() + 1); 
> ```

Ok bizarre - this does not appear to be an OoB despite pointing 1 past the end of the storage *twitching*

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


More information about the libcxx-commits mailing list