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

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


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

commit 939ff3a0c2026cc8c170191c5f427cdaeaf57ca4
Author: github-actions[bot] 
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Thu Oct 30 14:43:54 2025 +0800

    branch-3.1: [Bug](ip) fixed uint128 constructor in not align address #57371 
(#57430)
    
    Cherry-picked from #57371
    
    Co-authored-by: HappenLee <[email protected]>
---
 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 ebbee3e906c..7458811618f 100644
--- a/be/src/olap/types.h
+++ b/be/src/olap/types.h
@@ -1021,7 +1021,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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to