]> rtime.felk.cvut.cz Git - notmuch.git/commit
Add test demonstrating a position overlap bug.
authorCarl Worth <cworth@cworth.org>
Wed, 26 Jan 2011 05:19:31 +0000 (15:19 +1000)
committerCarl Worth <cworth@cworth.org>
Wed, 26 Jan 2011 05:59:19 +0000 (15:59 +1000)
commitfb54dee4ac1265b1cdf5b039e7c86a419decd04c
tree420194ef379054c1919088d218235c34e9c03f71
parentb64afb1ab9924749cd6d3fbfa02e5e42bb0d728b
Add test demonstrating a position overlap bug.

Currently, whenever we call index_terms multiple times for a single
field, the term generator is being reset to position 0 each time. This
means that with text such as:

To: a@b.c, x@y.z

one can get a bogus match by searching for:

To: a@y.c

Thanks to Mark Anderson for reporting the bug, (and providing a nice,
minimal test case that inspired what is used here).
test/notmuch-test
test/search-position-overlap-bug [new file with mode: 0755]