ReservedSpace
is unsound due to not being bound to its origin transaction.
#258
Milestone
ReservedSpace
is unsound due to not being bound to its origin transaction.
#258
ReservedSpace
is currently defined without lifetimes:heed/heed/src/reserved_space.rs
Lines 8 to 12 in 3406383
However, the callback functions in which it is used expose it as
FnOnce(&mut ReservedSpace)
. This means it is possible to write something like the following to modify the reserved space in safe Rust:This could be fixed by attaching a lifetime to
ReservedSpace<'a>
which is only valid for the duration of the closure.The text was updated successfully, but these errors were encountered: