openzim / libzim

Reference implementation of the ZIM specification
https://download.openzim.org/release/libzim/
GNU General Public License v2.0
166 stars 49 forks source link

Corrupted ZIM leads to crash on macOS #872

Closed BPerlakiH closed 6 months ago

BPerlakiH commented 6 months ago

A corrupted ZIM file can lead to unhandled exception on macOS, see: https://github.com/kiwix/kiwix-apple/issues/622

So far it seems that Xapian::DatabaseCorruptError is not handled here: https://github.com/openzim/libzim/blob/d7a8cacaf8ef541708b8d23c1feac94ef9b599a4/src/search.cpp#L284-L292

mgautierfr commented 6 months ago

Duplicate of https://github.com/openzim/libzim/issues/870