]> git.notmuchmail.org Git - notmuch/commitdiff
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)
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).


No differences found