aloneangel45 commented on code in PR #12410:
URL: https://github.com/apache/arrow-rs/pull/12410#discussion_r4665690892
##########
arrow-array/src/array/fixed_size_binary_array.rs:
##########
@@ -239,12 +239,19 @@ impl FixedSizeBinaryArray {
));
}
+ let required_len = len * value_size;
Review Comment:
Good catch — when `value_size != 0`, the `values.len() / value_size != len`
check above guarantees `len * value_size <= values.len() <= usize::MAX`, and
when `value_size == 0`, the product is always `0`. Removed the unreachable
error branch in `a56c2f6` (using `checked_mul(value_size).expect(...)` to match
`From<ArrayData>`).
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]