Skip to content

Commit 7016602

Browse files
committed
only assume_init after masking the node index overhang
1 parent 37981de commit 7016602

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/node.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1753,7 +1753,8 @@ impl Inner {
17531753
tmp.as_mut_ptr() as *mut u8,
17541754
len,
17551755
);
1756-
tmp.assume_init() & mask
1756+
*tmp.as_mut_ptr() &= mask;
1757+
tmp.assume_init()
17571758
}
17581759
}
17591760

0 commit comments

Comments
 (0)