Jefffrey commented on issue #9289:
URL: https://github.com/apache/arrow-rs/issues/9289#issuecomment-3808896706

   I *think* this might be a false positive. Looking at alloc:
   
   
https://github.com/apache/arrow-rs/blob/a49af1de8543b844430d799dff89d125a6f87221/arrow-buffer/src/buffer/mutable.rs#L131-L138
   
   We have code to call `handle_alloc_error` in case the returned pointer is 
null, which is returned if memory is exhausted:
   
   > Returning a null pointer indicates that either memory is exhausted or 
`layout` does not meet this allocator’s size or alignment constraints.
   
   - https://doc.rust-lang.org/std/alloc/trait.GlobalAlloc.html#tymethod.alloc
   
   For reference, the other calls to `alloc` have the same handling:
   
   
https://github.com/apache/arrow-rs/blob/a49af1de8543b844430d799dff89d125a6f87221/arrow-buffer/src/buffer/mutable.rs#L163-L167
   
   
https://github.com/apache/arrow-rs/blob/a49af1de8543b844430d799dff89d125a6f87221/arrow-buffer/src/buffer/mutable.rs#L346-L352


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