HomePhabricator

[scudo] Fix String DCHECK

Authored by cryptoad on Jun 4 2021, 1:38 PM.

Description

[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

Details

Committed
cryptoadJun 4 2021, 1:41 PM
Differential Revision
D103716: [scudo] Fix String DCHECK
Parents
rGefea1b178243: [gn build] (semi-manually) port 07c92b2e9581
Branches
Unknown
Tags
Unknown