[libcxx-commits] [PATCH] D154499: [libc++] Do not use stringbuf's string after move

Piotr Fusik via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Wed Jul 5 05:17:24 PDT 2023


pfusik added a subscriber: Mordante.
pfusik added a comment.

This fixes use-after-moves spotted by @Mordante in https://reviews.llvm.org/D151896#inline-1482124
The pointers are now set to null, same as in the default constructor of `stringbuf`.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D154499/new/

https://reviews.llvm.org/D154499



More information about the libcxx-commits mailing list