sfc-gh-ebrossard opened a new pull request, #36914: URL: https://github.com/apache/arrow/pull/36914
### Rationale for this change This is a trivial fix for a UBSan error in calls to `ConcatenateBuffers` with an empty buffer that has a null data pointer. ### What changes are included in this PR? Conditional call to `std::memcpy` based on whether the buffer's length is 0. ### Are these changes tested? Please let me know if you'd like a test; I can add one to `buffer_test.cc`. I'm not sure if there are automated UBSan runs for Arrow unit tests. ### Are there any user-facing changes? No -- 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]
