Skip to content

Commit 31c4e77

Browse files
committed
test: fix ReadTopologicalSet unsigned integer overflow
1 parent 9f713b8 commit 31c4e77

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/fuzz/cluster_linearize.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ SetType ReadTopologicalSet(const DepGraph<SetType>& depgraph, const SetType& tod
304304
try {
305305
reader >> VARINT(mask);
306306
} catch(const std::ios_base::failure&) {}
307-
mask += non_empty;
307+
if (mask != uint64_t(-1)) mask += non_empty;
308308

309309
SetType ret;
310310
for (auto i : todo) {

0 commit comments

Comments
 (0)