p-ranav / fccf

fccf: A command-line tool that quickly searches through C/C++ source code in a directory based on a search string and prints relevant code snippets that match the query.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Assert triggered using --ie

quyykk opened this issue · comments

commented

Using fccf on https://github.com/endless-sky/endless-sky as follows results in an assert being triggered:

$ fccf --ie 'Name' source/
/usr/include/c++/12.1.0/string_view:239: constexpr const std::basic_string_view<_CharT, _Traits>::value_type& std::basic_string_view<_CharT, _Traits>::operator[](size_type) const [with _CharT = char; _Traits = std::char_traits<char>; const_reference = const char&; size_type = long unsigned int]: Assertion '__pos < this->_M_len' failed.
[1]    49800 IOT instruction (core dumped)  fccf --ie 'Name' source/