BlockIterator could cause UB
Closed this issue · 1 comments
Fullstop000 commented
Lines 181 to 185 in 8a87a80
As block_iter.key()
returns an owned Slice
which represents the key
field in block_iter
, UB occurs after block_iter
is dropped.
Fullstop000 commented
Temporarily solved by lengthening the lifetime of block_iter