[
https://issues.apache.org/jira/browse/ARROW-11865?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17301661#comment-17301661
]
Jörn Horstmann commented on ARROW-11865:
----------------------------------------
Good catch, this really looks suspect now. I think that second read could be
replaced with reading a single byte since the bit_offset is guaranteed to be in
0..8, meaning we need at most one byte to fill in the remaining bits.
> [Rust] Out of bound reads in chunk iterator
> -------------------------------------------
>
> Key: ARROW-11865
> URL: https://issues.apache.org/jira/browse/ARROW-11865
> Project: Apache Arrow
> Issue Type: Bug
> Components: Rust
> Reporter: Jorge Leitão
> Priority: Major
>
> There is a `read_unaligned` of a pointer offseted by `index + 1` whose
> corresponding slice is only valid up to `index - X`, where X depends on the
> iterators' offset.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)