Menu

#25 Crash if a query string contains stop words

closed-fixed
nobody
None
5
2004-11-18
2004-10-22
No

The query parser crashes if terms are being AND'ed
together and the first one is being stopped e.g. "a AND b"

QueryParser::MatchQuery() calls MatchClause() to get
the "a" clause but is being returned NULL because the
word is a stopword. So it doesn't get added to the list
of clauses.

We then get the "b" term and try to AND it with the
first in AddClause() which is assuming that there's
something in the clause list.

Discussion

  • David S. Rushby

    David S. Rushby - 2004-11-02

    Logged In: YES
    user_id=414645

    Thanks.

    I just checked in a fix for this bug, as well for other bugs
    in the queryParser subsystem that I encountered along the way.

     
  • Ben van Klinken

    Ben van Klinken - 2004-11-18
    • status: open --> closed-fixed
     

Log in to post a comment.