[all-commits] [llvm/llvm-project] 5019b0: [scudo] Fix String DCHECK

Kostya Kortchinsky via All-commits all-commits at lists.llvm.org
Fri Jun 4 13:42:25 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5019b0a56588fc13e6a37c49e22a812afe6c4416
      https://github.com/llvm/llvm-project/commit/5019b0a56588fc13e6a37c49e22a812afe6c4416
  Author: Kostya Kortchinsky <kostyak at google.com>
  Date:   2021-06-04 (Fri, 04 Jun 2021)

  Changed paths:
    M compiler-rt/lib/scudo/standalone/string_utils.h

  Log Message:
  -----------
  [scudo] Fix String DCHECK

This resolves an issue tripping a `DCHECK`, as I was checking for the
capacity and not the size. We don't need to 0-init the Vector as it's
done already, and make sure we only 0-out the string on clear if it's
not empty.

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




More information about the All-commits mailing list