[libcxx-commits] [PATCH] D156783: [libc++] Fix `std::out_of_range` thrown from `basic_stringbuf::str() &&`

Piotr Fusik via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Tue Aug 1 03:27:56 PDT 2023


pfusik added a subscriber: leonardchan.
pfusik added a comment.

Fixes a bug reported by @leonardchan at https://reviews.llvm.org/D155276
In the bug scenario, `__view.data() == nullptr`. The offset is validated by the `string` constructor/`assign` even if `count == 0`.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D156783



More information about the libcxx-commits mailing list