]> git.ipfire.org Git - thirdparty/rspamd.git/commit
[Fix] Catch all exceptions when loading fasttext model to avoid crash
authorVsevolod Stakhov <vsevolod@rspamd.com>
Mon, 16 Feb 2026 15:36:19 +0000 (15:36 +0000)
committerVsevolod Stakhov <vsevolod@rspamd.com>
Mon, 16 Feb 2026 15:44:23 +0000 (15:44 +0000)
commitec830799e941fead586534cd17355802c97e7f9e
treee1c5098dbd71b4947d7fb753d1e7be6ad9c9220a
parent71b32137c619dde6b39a2c9d9dc47ffc164c8f58
[Fix] Catch all exceptions when loading fasttext model to avoid crash

When the fasttext language detection model file doesn't exist or is
corrupted, fasttext library throws an exception. Add a catch-all handler
to prevent crashes when the model path is invalid or the file is missing.

Also improved error messages to include the model path for debugging.
src/libmime/lang_detection_fasttext.cxx