1fanwang commented on PR #51128:
URL: https://github.com/apache/arrow/pull/51128#issuecomment-6107847953

   > We know that each miniblock requires at least one byte for its bitwidth.
   
   @pitrou thanks, that bound is simpler than decoding a block. InitHeader now 
throws when the required bit-width bytes exceed the bytes left, before any 
allocation. Done in 
https://github.com/apache/arrow/commit/025e74816fb6725c8f46a87a60aedfff5d14527a,
 with tests for truncated headers.
   


-- 
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]

Reply via email to