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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
