[ Reason ]
akonadi_html_to is carshing very frequently and creating a lot
coredumps. That is tracked in #1104598.
[ Impact ]
This issue creates thousands of coredumps for Users of KDEPIM.
For most users this is not visible that those coredumps are created, as
this happens in background and the services are restarted. This is at
least annoving, but a programm should not crash.
[ Tests ]
Run a manual test with the patched version that the following command
does not crash anymore:
echo -n '' | /usr/bin/akonadi_html_to_text
[ Risks ]
The code change is very simple and focused, so it is very unlikely that
any other bug get introduced by this two line patch.
A workaround exists use html2text as replacement for
akonadi_html_to_text:
apt install html2text
dpkg-divert --add --rename --divert /usr/bin/akonadi_html_to_text.original /
usr/bin/akonadi_html_to_text
update-alternatives --install /usr/bin/akonadi_html_to_text
akonadi_html_to_text /usr/bin/html2text 1
That woraround would divert a lot more from upstream and makes it harder
to track bugs, if that would have been introdiced by this workaround.
[ Checklist ]
[x] *all* changes are documented in the d/changelog
[x] I reviewed all changes and I approve them
[x] attach debdiff against the package in (old)stable
[x] the issue is verified as fixed in unstable
[ Changes ]
Added a 2 line patch from Fab Stz to fix the crash on empty input.