You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This can be fixed easily by making queryParser a stack-allocated object (currently the only justification for it being allocated dynamically could be the large value of sizeof(Xapian::QueryParser) which it isn't). Yet, it would be nice to refactor zim::Search::begin() along the way, breaking that 150+ line function down to smaller functions.
The text was updated successfully, but these errors were encountered:
queryParser
inzim::Search::begin()
may leak in case of an invalid query:libzim/src/search.cpp
Lines 337 to 368 in e7fb949
This can be fixed easily by making
queryParser
a stack-allocated object (currently the only justification for it being allocated dynamically could be the large value ofsizeof(Xapian::QueryParser)
which it isn't). Yet, it would be nice to refactorzim::Search::begin()
along the way, breaking that 150+ line function down to smaller functions.The text was updated successfully, but these errors were encountered: