You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When overflow checks are disabled, <Buffer as FromIterator<T>>::from_iter may construct MutableBuffer with a smaller capacity due to wrap-around arithmetic, causing out-of-bounds write.
Describe the bug
When overflow checks are disabled,
<Buffer as FromIterator<T>>::from_iter
may constructMutableBuffer
with a smaller capacity due to wrap-around arithmetic, causing out-of-bounds write.arrow-rs/arrow-buffer/src/buffer/immutable.rs
Lines 424 to 438 in 5bb226c
arrow-rs/arrow-buffer/src/buffer/mutable.rs
Lines 71 to 72 in 5bb226c
arrow-rs/arrow-buffer/src/util/bit_util.rs
Lines 32 to 43 in 5bb226c
To Reproduce
The following code segfaults in release build:
Expected behavior
Panicking, aborting, or successful UB-free execution
Additional context
The text was updated successfully, but these errors were encountered: