Package: xapian-core / 1.4.3-2~bpo8+1

Metadata

Package Version Patches format
xapian-core 1.4.3-2~bpo8+1 3.0 (quilt)

Patch series

view the series file
Patch File delta Description
fix unweighted and.patch | (download)

matcher/multiandpostlist.cc | 2 1 + 1 - 0 !
tests/api_collated.h | 1 1 + 0 - 0 !
tests/api_query.cc | 15 15 + 0 - 0 !
tests/api_query.h | 1 1 + 0 - 0 !
4 files changed, 18 insertions(+), 1 deletion(-)

 fix incorrect results due to uninitialised memory
    The array holding max weight values in MultiAndPostList is never
    initialised if the operator is unweighted, but the values are still
    used to calculate the max weight to pass to subqueries, leading to
    incorrect results.  This can be observed with an OR under an unweighted
    AND (e.g. OR under AND on the right side of AND_NOT).
    
    The fix applied is to simply default initialise this array, which
    should lead to a max weight of 0.0 being passed on to subqueries.
    
    Bug reported in notmuch by Kirill A. Shutemov, and forwarded by
    David Bremner.