Created attachment 534666 [details, diff] Fix segfault when not specifying mime sections with -s (section = NULL) reformime crash with segmentation fault in the do_extract part of main2() if no mime sections are specified with the -s option. In this case reformime is supposed to extract all sections. The problem started after upgrading glibc. The improper use of the strtok function apparently worked before but now segfaults. In the supplied patch I have simply used the same approach as in the doinfo part of main2. I put the same fix in dodecode as that would also crash if not specifying -s.
Created attachment 534668 [details] emerge --info
Have you reported this upstream?
Thank you Thomas, this fix fixed the maildrop issue I was having.
Now reported upstream: https://github.com/svarshavchik/courier-libs/issues/8
The bug is now fixed upstream. The change to the -e option is unnecessary.
Created attachment 537274 [details, diff] Fix segfault when not specifying mime sections with -s (section = NULL)
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7a9a1e95090d8c20172dbe7f51d267240cde2bd4 commit 7a9a1e95090d8c20172dbe7f51d267240cde2bd4 Author: Tim Harder <radhermit@gentoo.org> AuthorDate: 2018-12-25 19:18:21 +0000 Commit: Tim Harder <radhermit@gentoo.org> CommitDate: 2018-12-25 19:28:57 +0000 mail-filter/maildrop: version bump to 3.0.0 Closes: https://bugs.gentoo.org/582928 Closes: https://bugs.gentoo.org/639124 Closes: https://bugs.gentoo.org/657288 Signed-off-by: Tim Harder <radhermit@gentoo.org> mail-filter/maildrop/Manifest | 1 + .../maildrop/files/maildrop-3.0.0-testsuite.patch | 65 ++++++++++ mail-filter/maildrop/maildrop-3.0.0.ebuild | 140 +++++++++++++++++++++ 3 files changed, 206 insertions(+)