Skip to content

Commit

Permalink
[fix](func) Fix BE core dump caused by buffer access out of bounds (a…
Browse files Browse the repository at this point in the history
…pache#44919)

Fix BE core dump caused by buffer access out of bounds
  • Loading branch information
zxealous authored Dec 4, 2024
1 parent c36b0cc commit e9d2673
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion be/src/vec/functions/function_string.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -894,7 +894,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);
Expand Down

0 comments on commit e9d2673

Please sign in to comment.