[all-commits] [llvm/llvm-project] 602c19: [libc++] Make sure __clear_and_shrink() maintains ...

Louis Dionne via All-commits all-commits at lists.llvm.org
Wed Oct 7 06:17:21 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 602c193e2aeb19f5d2e48075281601a2386e8758
      https://github.com/llvm/llvm-project/commit/602c193e2aeb19f5d2e48075281601a2386e8758
  Author: Louis Dionne <ldionne at apple.com>
  Date:   2020-10-07 (Wed, 07 Oct 2020)

  Changed paths:
    M libcxx/include/string

  Log Message:
  -----------
  [libc++] Make sure __clear_and_shrink() maintains string invariants

__clear_and_shrink() was added in D41976, and a test was added alongside
it to make sure that the string invariants were maintained. However, it
appears that the test never ran under UBSan before, which would have
highlighted the fact that it doesn't actually maintain the string
invariants.

Differential Revision: https://reviews.llvm.org/D88849




More information about the All-commits mailing list