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
The following commit(s) were added to refs/heads/branch-3.0 by this push:
new bb4c3f77ebf branch-3.0: [fix](func) Fix BE core dump caused by buffer
access out of bounds #44919 (#44969)
bb4c3f77ebf is described below
commit bb4c3f77ebf226239a7c41bf930c60d30ce45846
Author: github-actions[bot]
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Wed Dec 4 14:23:36 2024 +0800
branch-3.0: [fix](func) Fix BE core dump caused by buffer access out of
bounds #44919 (#44969)
Cherry-picked from #44919
Co-authored-by: zxealous <[email protected]>
---
be/src/vec/functions/function_string.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/be/src/vec/functions/function_string.cpp
b/be/src/vec/functions/function_string.cpp
index 1a62c9daaf6..f98589b1965 100644
--- a/be/src/vec/functions/function_string.cpp
+++ b/be/src/vec/functions/function_string.cpp
@@ -746,7 +746,7 @@ struct StringSpace {
if (data[i] > 0) {
buffer.resize(data[i]);
for (size_t j = 0; j < data[i]; ++j) {
- buffer[i] = ' ';
+ buffer[j] = ' ';
}
StringOP::push_value_string(std::string_view(buffer.data(),
buffer.size()), i,
res_data, res_offsets);
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]