You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "alamb (via GitHub)" <gi...@apache.org> on 2026/04/25 03:37:17 UTC

[PR] Prevent BitChunks length overflow [arrow-rs]

alamb opened a new pull request, #9818:
URL: https://github.com/apache/arrow-rs/pull/9818

   # Which issue does this PR close?
   
   - None.
   
   # Rationale for this change
   
   BitChunks used unchecked usize arithmetic when validating bit offset plus length. In optimized builds, very large lengths could wrap this bounds check before constructing the iterator state.
   
   # What changes are included in this PR?
   
   This adds checked arithmetic for BitChunks bounds validation while preserving the existing out-of-bounds panic message.
   
   # Are these changes tested?
   
   Yes. This adds regression coverage for overflowing bit offset plus length validation.
   
   # Are there any user-facing changes?
   
   Invalid BitChunks inputs whose offset and length cannot be represented without overflow now panic consistently. There are no API changes.
   


-- 
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: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Prevent BitChunks length overflow [arrow-rs]

Posted by "alamb (via GitHub)" <gi...@apache.org>.
alamb merged PR #9818:
URL: https://github.com/apache/arrow-rs/pull/9818


-- 
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: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Prevent BitChunks length overflow [arrow-rs]

Posted by "alamb (via GitHub)" <gi...@apache.org>.
alamb commented on PR #9818:
URL: https://github.com/apache/arrow-rs/pull/9818#issuecomment-4319934656

   Thank you @Dandandan 


-- 
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: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org