diff --git a/src/ctags.cc b/src/ctags.cc index 5ef7a69..0a51bbc 100644 --- a/src/ctags.cc +++ b/src/ctags.cc @@ -146,6 +146,8 @@ std::vector Ctags::get_locations(const boost::filesystem::path long best_score=LONG_MIN; std::vector best_locations; while(std::getline(*result.second, line)) { + if(line.size()>2048) + continue; auto location=Ctags::get_location(line, false); if(!location.scope.empty()) { if(location.scope+"::"+location.symbol!=name)