weggli is a fast and robust semantic search tool for C and C++ codebases. It is designed to help security researchers identify interesting functionality in large codebases.
I want to search for vulnerability code for unique_ptr moved twice. Therefore, I need to search for code snippets in the same block for double move statements. For example,
{ std::move(a); std::move(a) }
How can I search such code snippets?
p.s. I find that tree-sitter supports such feature.
I want to search for vulnerability code for unique_ptr moved twice. Therefore, I need to search for code snippets in the same block for double move statements. For example,
{ std::move(a); std::move(a) }
How can I search such code snippets?p.s. I find that tree-sitter supports such feature.