Handle removing doc term at current TermIterator position
commit9650fc6f46fca47fbd78bc9080a88d42b558c438
authorOlly Betts <olly@survex.com>
Sun, 3 Dec 2017 22:46:46 +0000 (4 11:46 +1300)
committerOlly Betts <olly@survex.com>
Sun, 3 Dec 2017 22:46:46 +0000 (4 11:46 +1300)
tree744f3817965f34dfd937fa986d8c26549c9acb8f
parent4c409f1e6123f437a41137018bba76eb99ab7564
Handle removing doc term at current TermIterator position

Previously the underlying iterator was invalidated, leading to undefined
behaviour (typically a segmentation fault).

Reported by Gaurav Arora.
xapian-core/api/documenttermlist.cc
xapian-core/api/terminfo.cc
xapian-core/api/terminfo.h
xapian-core/backends/documentinternal.cc
xapian-core/backends/documentinternal.h
xapian-core/tests/api_none.cc