Jefffrey opened a new issue, #12411:
URL: https://github.com/apache/arrow-rs/issues/12411

   ### Describe the bug
   
   Append methods call `next_offset()`, which can panic on overflow. If a 
caller catch unwinds this panic, it can leave the builder in an invalid state. 
For example:
   
   
https://github.com/apache/arrow-rs/blob/ab4af8a20c7304b23f7157c665140407c3369621/arrow-array/src/builder/generic_bytes_builder.rs#L101-L106
   
   - It appends to values & nulls, but if offsets fails due to overflow, and 
catch unwind happens, builder is in invalid state
   
   ### To Reproduce
   
   _No response_
   
   ### Expected behavior
   
   Look through the methods, and try to see if we can change them to ensure any 
panics/failures happens upfront before modifying the builder
   
   ### Additional context
   
   Not a high priority, this seems a niche case
   
   ### Willingness to contribute
   
   None


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