Check Btree level value from disk is in range
commit86b5e2ce03427c28f11c17bfc9bcc05d2a9f9966
authorOlly Betts <olly@survex.com>
Tue, 16 Jan 2024 21:33:41 +0000 (17 10:33 +1300)
committerOlly Betts <olly@survex.com>
Tue, 16 Jan 2024 21:33:41 +0000 (17 10:33 +1300)
tree452474458b504b4c756096e37ba6b4141b2886b7
parent799d897f290454882308f06a1d02353d70aeb122
Check Btree level value from disk is in range

Avoids potential out of range access on corrupt DB.

Fixes #824, reported by group13.
xapian-core/backends/glass/glass_table.cc
xapian-core/tests/api_backend.cc
xapian-core/tests/testdata/glass_corrupt_level_db [new file with mode: 0644]