From fb04802dab9acd59f8e9097c14b34df24cbdc566 Mon Sep 17 00:00:00 2001 From: HappenLee Date: Wed, 29 Oct 2025 01:19:53 +0800 Subject: [PATCH] [Bug](ip) fixed uint128 constructor in not align address (#57371) ### What problem does this PR solve? ipv6 use uint128 to construct, but the mem access in storage engine in not align address may cause O3 coredump --- 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 ebbee3e906c8ac..7458811618f0cc 100644 --- a/be/src/olap/types.h +++ b/be/src/olap/types.h @@ -1021,7 +1021,7 @@ struct FieldTypeTraits } static std::string to_string(const void* src) { - uint128_t value = *reinterpret_cast(src); + uint128_t value = unaligned_load(src); IPv6Value ipv6_value(value); return ipv6_value.to_string(); }