pitrou commented on issue #44372:
URL: https://github.com/apache/arrow/issues/44372#issuecomment-2406899429

   This seems to be https://github.com/llvm/llvm-project/pull/67766
   
   Can you try the following diff @dotnwat ?
   ```diff
   diff --git a/cpp/src/arrow/util/ubsan.h b/cpp/src/arrow/util/ubsan.h
   index 900d8011df..ab91e88556 100644
   --- a/cpp/src/arrow/util/ubsan.h
   +++ b/cpp/src/arrow/util/ubsan.h
   @@ -63,7 +63,7 @@ inline std::enable_if_t<std::is_trivially_copyable_v<T>, 
T> SafeLoadAs(
    template <typename T>
    inline std::enable_if_t<std::is_trivially_copyable_v<T>, T> SafeLoad(const 
T* unaligned) {
      std::remove_const_t<T> ret;
   -  std::memcpy(&ret, unaligned, sizeof(T));
   +  std::memcpy(&ret, reinterpret_cast<const void*>(unaligned), sizeof(T));
      return ret;
    }
    
   @@ -73,7 +73,7 @@ inline std::enable_if_t<std::is_trivially_copyable_v<T> &&
                            U>
    SafeCopy(T value) {
      std::remove_const_t<U> ret;
   -  std::memcpy(&ret, &value, sizeof(T));
   +  std::memcpy(&ret, reinterpret_cast<const void*>(&value), sizeof(T));
      return ret;
    }
    
   ```
   


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