mapleFU commented on issue #44690:
URL: https://github.com/apache/arrow/issues/44690#issuecomment-2488320402

   @raulcd There is few steps for this problem
   
   1. `AppendValues` might has `std::vector` as arguments, `std::vector::data` 
might be used
   2. `std::vector::data` might returns `nullptr` if size == 0: 
https://en.cppreference.com/w/cpp/container/vector/data
   3. https://en.cppreference.com/w/cpp/string/byte/memcpy memcpy says, "If 
either dest or src is an [invalid or null 
pointer](https://en.cppreference.com/w/cpp/language/pointer#Pointers), the 
behavior is undefined, even if count is zero."
   
   @raulcd 


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