This is an automated email from the ASF dual-hosted git repository. dataroaring pushed a commit to branch branch-3.0 in repository https://gitbox.apache.org/repos/asf/doris.git
commit 51b19501d3a2b9af8977d046363a50f19a8d1506 Author: Mryange <[email protected]> AuthorDate: Tue May 28 11:19:36 2024 +0800 [fix](function) bitmap to base64 error length check (#35117) --- be/src/vec/functions/function_bitmap.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/be/src/vec/functions/function_bitmap.cpp b/be/src/vec/functions/function_bitmap.cpp index 4d77b85259f..fb0e0471caa 100644 --- a/be/src/vec/functions/function_bitmap.cpp +++ b/be/src/vec/functions/function_bitmap.cpp @@ -993,7 +993,7 @@ struct BitmapToBase64 { for (size_t i = 0; i < size; ++i) { BitmapValue& bitmap_val = const_cast<BitmapValue&>(data[i]); auto ser_size = bitmap_val.getSizeInBytes(); - output_char_size += ser_size * (int)(4.0 * ceil((double)ser_size / 3.0)); + output_char_size += (int)(4.0 * ceil((double)ser_size / 3.0)); } ColumnString::check_chars_length(output_char_size, size); chars.resize(output_char_size); --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
