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

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


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

commit be0f1b73a7aeb78824a03e0dcb692c50a176d513
Author: daidai <[email protected]>
AuthorDate: Fri Mar 6 20:10:51 2026 +0800

    [fix]fix coredump because rewriteLeaves function heap-use-after-free (#383)
---
 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