aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/message.cc
diff options
context:
space:
mode:
authorGravatar Carl Worth <cworth@cworth.org>2011-01-26 15:19:31 +1000
committerGravatar Carl Worth <cworth@cworth.org>2011-01-26 15:59:19 +1000
commitfb54dee4ac1265b1cdf5b039e7c86a419decd04c (patch)
tree420194ef379054c1919088d218235c34e9c03f71 /lib/message.cc
parentb64afb1ab9924749cd6d3fbfa02e5e42bb0d728b (diff)
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).
Diffstat (limited to 'lib/message.cc')
0 files changed, 0 insertions, 0 deletions