[honey] Fix reading doclength off end of db
commit0aef0adbc061ad960ccbef50a520543314338e67
authorOlly Betts <olly@survex.com>
Mon, 26 Feb 2018 20:55:13 +0000 (27 09:55 +1300)
committerOlly Betts <olly@survex.com>
Mon, 26 Feb 2018 20:55:13 +0000 (27 09:55 +1300)
tree5fc075a4ebf0b5776b7624091072b80ff1f27dd7
parent2e0b39e28fdc44ef43768fc9cdab7492d7570edf
[honey] Fix reading doclength off end of db

This was resulting in termlist1 failing with SIGFPE on some platforms
instead of the expected DocNotFoundError exception.

Reported by addy on #xapian.
xapian-core/backends/honey/honey_alldocspostlist.cc
xapian-core/backends/honey/honey_database.cc