commit | 02efe40f2645ae747da76bde96e9aaa0fe115b8e | [log] [tgz] |
---|---|---|
author | Kostya Kortchinsky <kostyak@google.com> | Fri Jun 04 13:38:26 2021 -0700 |
committer | Christopher Ferris <cferris@google.com> | Mon Jun 07 12:54:01 2021 -0700 |
tree | 88035d180e9d7bb9079a3488c6c5ac9b053f5454 | |
parent | a78a4a7f70cc7cad99e2a77f20c51e31517f64bc [diff] |
[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 GitOrigin-RevId: 5019b0a56588fc13e6a37c49e22a812afe6c4416 Change-Id: I0aacc20416a642198d0e49d1559c259621f625db