This is an automated email from the ASF dual-hosted git repository. yiguolei pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/master by this push: new 78236868677 [Bug](fix) try to fix the coredump of streambyte decode of sse (#30190) 78236868677 is described below commit 78236868677967d4e4d7324bdc043b569597b028 Author: HappenLee <happen...@hotmail.com> AuthorDate: Sun Jan 21 10:54:47 2024 +0800 [Bug](fix) try to fix the coredump of streambyte decode of sse (#30190) --- be/src/vec/core/block.cpp | 3 ++- be/src/vec/data_types/data_type_decimal.cpp | 2 -- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/be/src/vec/core/block.cpp b/be/src/vec/core/block.cpp index e3ce4885cb0..dc9c90a3397 100644 --- a/be/src/vec/core/block.cpp +++ b/be/src/vec/core/block.cpp @@ -23,6 +23,7 @@ #include <fmt/format.h> #include <gen_cpp/data.pb.h> #include <snappy.h> +#include <streamvbyte.h> #include <sys/types.h> #include <algorithm> @@ -869,7 +870,7 @@ Status Block::serialize(int be_exec_version, PBlock* pblock, *uncompressed_bytes = content_uncompressed_size; const size_t serialize_bytes = buf - column_values.data(); *compressed_bytes = serialize_bytes; - column_values.resize(serialize_bytes); + column_values.resize(serialize_bytes + STREAMVBYTE_PADDING); // compress if (compression_type != segment_v2::NO_COMPRESSION && content_uncompressed_size > 0) { diff --git a/be/src/vec/data_types/data_type_decimal.cpp b/be/src/vec/data_types/data_type_decimal.cpp index 4e4c7ddd819..0573a17729e 100644 --- a/be/src/vec/data_types/data_type_decimal.cpp +++ b/be/src/vec/data_types/data_type_decimal.cpp @@ -25,8 +25,6 @@ #include <streamvbyte.h> #include <string.h> -#include <utility> - #include "runtime/decimalv2_value.h" #include "util/string_parser.hpp" #include "vec/columns/column.h" --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org