bkietz commented on code in PR #13215:
URL: https://github.com/apache/arrow/pull/13215#discussion_r885918531


##########
cpp/src/arrow/compute/exec/ir_consumer.cc:
##########
@@ -152,14 +152,14 @@ struct ConvertLiteralImpl {
     switch (t.id()) {
       case Type::DECIMAL128: {
         std::array<uint64_t, 2> little_endian;
-        std::memcpy(little_endian.data(), lit->value(), lit->value()->size());
+        std::memcpy(little_endian.data(), lit->value()->data(), 
lit->value()->size());

Review Comment:
   The size of the literal string is asserted to be equal to the decimal's 
byte_width above, so every byte of `little_endian` should be safely overwritten



-- 
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: github-unsubscr...@arrow.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to