LibreOffice / libexttextcat

BSD 3-Clause "New" or "Revised" License
16 stars 10 forks source link

Handle out of memory by exiting instead of segfaulting #4

Open sirainen opened 1 year ago

sirainen commented 1 year ago

Dovecot limits process VSZ by default, and we noticed that libexttextcat crashes when it can't allocate memory. Segfaulting doesn't make it very clear why the failure happened, so would be nice to get some kind of an error message printed. Here's the simplest patch I thought of to fix it.

kloczek commented 10 months ago

Any chance merge this PR and release new version? 🤔