提交 ed0ed1a0 编写于 作者: L lf0 提交者: LINGuanRen

Fix the core caused by using invalid memory

上级 52b7d789
......@@ -1265,14 +1265,14 @@ int ObSqlParameterization::get_select_item_param_info(
SQL_PC_LOG(
WARN, "invalid null children", K(ret), K(stack_frames.at(frame_idx).cur_node_->children_), K(frame_idx));
} else {
TraverseStackFrame& frame = stack_frames.at(frame_idx);
TraverseStackFrame frame = stack_frames.at(frame_idx);
for (int64_t i = frame.next_child_idx_; OB_SUCC(ret) && i < frame.cur_node_->num_child_; i++) {
if (OB_ISNULL(frame.cur_node_->children_[i])) {
frame.next_child_idx_ = i + 1;
stack_frames.at(frame_idx).next_child_idx_ = i + 1;
} else if (OB_FAIL(stack_frames.push_back(TraverseStackFrame{frame.cur_node_->children_[i], 0}))) {
LOG_WARN("failed to push back eleemnt", K(ret));
} else {
frame.next_child_idx_ = i + 1;
stack_frames.at(frame_idx).next_child_idx_ = i + 1;
LOG_DEBUG("after pushing frame", K(stack_frames));
break;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册