[Lldb-commits] [PATCH] D41086: [lldb] Check that a regex is valid before searching by regex for a symbol in a pdb.
Aaron Smith via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Mon Dec 11 13:09:13 PST 2017
asmith added inline comments.
================
Comment at: source/Plugins/SymbolFile/PDB/SymbolFilePDB.cpp:393
+ bool is_regex = false;
+ if (name_str.find_first_of("[]?*.-+\\") != std::string::npos) {
+ // Trying to compile an invalid regex could throw an exception.
----------------
The find_first could be removed depending on the cost of lldb_private::RegularExpression()
Repository:
rL LLVM
https://reviews.llvm.org/D41086
More information about the lldb-commits
mailing list