[Xapian-tickets] [Xapian] #803: Snippet generator crashes on empty query

Xapian nobody at xapian.org
Fri Jun 5 07:36:48 BST 2020


#803: Snippet generator crashes on empty query
-----------------------------+-------------------------------
 Reporter:  Robert Stepanek  |             Owner:  Olly Betts
     Type:  defect           |            Status:  assigned
 Priority:  normal           |         Milestone:  1.4.16
Component:  Library API      |           Version:  1.4.15
 Severity:  normal           |        Resolution:
 Keywords:                   |        Blocked By:
 Blocking:                   |  Operating System:  All
-----------------------------+-------------------------------
Changes (by Olly Betts):

 * version:  git master => 1.4.15
 * milestone:   => 1.4.16

Comment:

 This variant of your testcase segfaults in the 1.4 branch:

 {{{
     Xapian::Enquire enquire(get_database("apitest_simpledata"));
     enquire.set_query(Xapian::Query());
     Xapian::MSet mset;
     TEST_STRINGS_EQUAL(mset.snippet("foo", 3), "foo");
 }}}
-- 
Ticket URL: <https://trac.xapian.org/ticket/803#comment:5>
Xapian <https://xapian.org/>
Xapian


More information about the Xapian-tickets mailing list