From 1e34951a774dc4c856c35e4fd87fc40c2f0c7ac1 Mon Sep 17 00:00:00 2001 From: Andrew Noyes Date: Wed, 14 Aug 2024 15:25:10 -0700 Subject: [PATCH] Fix use-of-uninit in eraseBetween (Node256) --- ConflictSet.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ConflictSet.cpp b/ConflictSet.cpp index 26fcf0e..8eba726 100644 --- a/ConflictSet.cpp +++ b/ConflictSet.cpp @@ -1874,7 +1874,7 @@ void eraseBetween(Node **inTree, Node256 *n, int begin, int end, const unsigned shiftAmount = begin; auto inBounds = [&](unsigned c) { return c - shiftAmount < shiftUpperBound; }; n->numChildren = 0; - BitSet newBitSet; + BitSet newBitSet{}; n->bitSet.forEachSet([&](int i) { if (inBounds(i)) { eraseTree(std::exchange(n->children[i], nullptr), tls);