This is an automated email from the ASF dual-hosted git repository.

morningman pushed a commit to branch orc-selectdb-doris-3.1
in repository https://gitbox.apache.org/repos/asf/doris-thirdparty.git


The following commit(s) were added to refs/heads/orc-selectdb-doris-3.1 by this 
push:
     new 6bceef6fa87 [fix]fix coredump because rewriteLeaves function 
heap-use-after-free (#383) (#388)
6bceef6fa87 is described below

commit 6bceef6fa87ced1f8db904ff6e69a8eda7e9a65f
Author: daidai <[email protected]>
AuthorDate: Tue Mar 24 11:39:32 2026 +0800

    [fix]fix coredump because rewriteLeaves function heap-use-after-free (#383) 
(#388)
---
 c++/src/sargs/SearchArgument.cc | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/c++/src/sargs/SearchArgument.cc b/c++/src/sargs/SearchArgument.cc
index 806727f0a03..88ff132ef08 100644
--- a/c++/src/sargs/SearchArgument.cc
+++ b/c++/src/sargs/SearchArgument.cc
@@ -309,8 +309,6 @@ namespace orc {
     // Perform BFS
     while (!nodes.empty()) {
       TreeNode& node = nodes.front();
-      nodes.pop_front();
-
       if (node->getOperator() == ExpressionTree::Operator::LEAF) {
         leaves.insert(node);
       } else {
@@ -318,6 +316,7 @@ namespace orc {
           nodes.push_back(child);
         }
       }
+      nodes.pop_front();
     }
 
     // Update the leaf in place


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to