fornwall opened a new pull request, #940:
URL: https://github.com/apache/arrow-nanoarrow/pull/940

   
[ArrowBufferView](https://arrow.apache.org/nanoarrow/latest/reference/c.html#_CPPv4N15ArrowBufferView4dataE)
 and 
[ArrowStringView](https://arrow.apache.org/nanoarrow/latest/reference/c.html#_CPPv4N15ArrowStringView4dataE)
 allow a null data pointer when their size is zero:
   
   > If size_bytes is 0, this value may be NULL.
   
   Appending these views to binary-view or string-view arrays currently passes 
the null pointer to `memcpy`, which is undefined behaviour even for a zero-byte 
copy as flagged by UBSan.
   
   Skip the inline copy for empty values to fix that.


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