This is an automated email from the ASF dual-hosted git repository.
yiguolei pushed a commit to branch branch-4.0
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-4.0 by this push:
new daf9617716d branch-4.0: [fix](olap) Crash caused by out-of-bounds
PODArray access #57239 (#57250)
daf9617716d is described below
commit daf9617716d5d1f3b170acb9dd98b1dd7c5a5da3
Author: github-actions[bot]
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Thu Oct 23 13:05:05 2025 +0800
branch-4.0: [fix](olap) Crash caused by out-of-bounds PODArray access
#57239 (#57250)
Cherry-picked from #57239
Co-authored-by: Jerry Hu <[email protected]>
---
be/src/vec/olap/vcollect_iterator.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/be/src/vec/olap/vcollect_iterator.cpp
b/be/src/vec/olap/vcollect_iterator.cpp
index d17ce910f59..6ad8202ad4a 100644
--- a/be/src/vec/olap/vcollect_iterator.cpp
+++ b/be/src/vec/olap/vcollect_iterator.cpp
@@ -341,7 +341,7 @@ Status VCollectIterator::_topn_next(Block* block) {
DCHECK(block->get_by_position(k).type->equals(
*mutable_block.get_datatype_by_position(k)));
res = block->get_by_position(k).column->compare_at(
- k, last_row_pos,
*(mutable_block.get_column_by_position(k)), -1);
+ j, last_row_pos,
*(mutable_block.get_column_by_position(k)), -1);
if (res) {
break;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]