Describe the bug
https://docs.rs/arrow/latest/arrow/array/struct.BooleanBufferBuilder.html#method.reserve says
pub fn reserve(&mut self, additional: usize)
Reserve space to at least additional new bits. Capacity will be >= self.len() + additional. New bytes are uninitialized and reading them is undefined behavior.
Other reserve methods look similar, but don't document their undefined behavior; I haven't carefully read the code on whether they actually are unsafe or not.
It seems this is letting the caller trigger undefined behavior, but is not marked as unsafe.
Their documentation should probably also be unified.
Describe the bug
https://docs.rs/arrow/latest/arrow/array/struct.BooleanBufferBuilder.html#method.reserve says
Other
reservemethods look similar, but don't document their undefined behavior; I haven't carefully read the code on whether they actually are unsafe or not.It seems this is letting the caller trigger undefined behavior, but is not marked as
unsafe.Their documentation should probably also be unified.