Skip to content

Commit

Permalink
[Fix](inverted index) fix heap buffer use after free
Browse files Browse the repository at this point in the history
  • Loading branch information
airborne12 committed Sep 12, 2023
1 parent a9a2a77 commit df5839e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion be/src/olap/rowset/segment_v2/inverted_index_reader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -560,7 +560,7 @@ Status StringTypeInvertedIndexReader::handle_point_query(const std::string& colu
std::wstring search_ws = StringUtil::string_to_wstring(v);
term.reset(_CLNEW lucene::index::Term(column_name_ws.c_str(), search_ws.c_str()));
auto term_query = std::make_unique<lucene::search::TermQuery>(term.get());
lucene_query->add(term_query.get(), lucene::search::BooleanClause::SHOULD);
lucene_query->add(term_query.release(), true, lucene::search::BooleanClause::SHOULD);
}

InvertedIndexQueryCache::CacheKey cache_key {_file_full_path, column_name,
Expand Down

0 comments on commit df5839e

Please sign in to comment.