You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by yi...@apache.org on 2025/10/29 05:27:47 UTC

(doris) branch branch-4.0 updated: branch-4.0: [Bug](ip) fixed uint128 constructor in not align address #57371 (#57431)

This is an automated email from the ASF dual-hosted git repository.

yiguolei pushed a commit to branch branch-4.0
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/branch-4.0 by this push:
     new 83e412740e1 branch-4.0: [Bug](ip) fixed uint128 constructor in not align address #57371 (#57431)
83e412740e1 is described below

commit 83e412740e1a5153203d583b992801a6c36d51de
Author: github-actions[bot] <41...@users.noreply.github.com>
AuthorDate: Wed Oct 29 13:27:40 2025 +0800

    branch-4.0: [Bug](ip) fixed uint128 constructor in not align address #57371 (#57431)
    
    Cherry-picked from #57371
    
    Co-authored-by: HappenLee <ha...@selectdb.com>
---
 be/src/olap/types.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/be/src/olap/types.h b/be/src/olap/types.h
index 7ff538418ae..3133f7615df 100644
--- a/be/src/olap/types.h
+++ b/be/src/olap/types.h
@@ -1020,7 +1020,7 @@ struct FieldTypeTraits<FieldType::OLAP_FIELD_TYPE_IPV6>
     }
 
     static std::string to_string(const void* src) {
-        uint128_t value = *reinterpret_cast<const uint128_t*>(src);
+        uint128_t value = unaligned_load<uint128_t>(src);
         IPv6Value ipv6_value(value);
         return ipv6_value.to_string();
     }


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org