From 0d4e201210f2621dc1496e61ff1e3d625b06e57c6b628c5d23ba2f26aace091e Mon Sep 17 00:00:00 2001 From: Marcus Rueckert Date: Sun, 27 May 2018 10:51:16 +0000 Subject: [PATCH] - added 847790d5aab84df38256a6f9b4849af0eb408419.patch: Fix crash for over quota users OBS-URL: https://build.opensuse.org/package/show/server:mail/dovecot23?expand=0&rev=19 --- ...90d5aab84df38256a6f9b4849af0eb408419.patch | 25 +++++++++++++++++++ dovecot23.changes | 6 +++++ dovecot23.spec | 2 ++ 3 files changed, 33 insertions(+) create mode 100644 847790d5aab84df38256a6f9b4849af0eb408419.patch diff --git a/847790d5aab84df38256a6f9b4849af0eb408419.patch b/847790d5aab84df38256a6f9b4849af0eb408419.patch new file mode 100644 index 0000000..b85ec07 --- /dev/null +++ b/847790d5aab84df38256a6f9b4849af0eb408419.patch @@ -0,0 +1,25 @@ +From 847790d5aab84df38256a6f9b4849af0eb408419 Mon Sep 17 00:00:00 2001 +From: Stephan Bosch +Date: Mon, 14 May 2018 23:56:21 +0200 +Subject: [PATCH] lmtp: Fix segfault occurring when a user turns out to be over + quota at DATA transfer. + +The LMTP recipient context was not updated with the final recipient address when +the RCPT command was accepted. This left a dangling struct smtp_address pointer +which triggered the segfault when used. +--- + src/lmtp/lmtp-common.c | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/src/lmtp/lmtp-common.c b/src/lmtp/lmtp-common.c +index b3f13dec41..39ed6c1b4f 100644 +--- a/src/lmtp/lmtp-common.c ++++ b/src/lmtp/lmtp-common.c +@@ -22,6 +22,7 @@ void lmtp_recipient_finish(struct lmtp_recipient *rcpt, + { + trcpt->context = rcpt; + ++ rcpt->path = trcpt->path; + rcpt->rcpt = trcpt; + rcpt->index = index; + rcpt->rcpt_cmd = NULL; diff --git a/dovecot23.changes b/dovecot23.changes index 891cf4c..0176155 100644 --- a/dovecot23.changes +++ b/dovecot23.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Sun May 27 09:31:02 UTC 2018 - mrueckert@suse.de + +- added 847790d5aab84df38256a6f9b4849af0eb408419.patch: + Fix crash for over quota users + ------------------------------------------------------------------- Tue Apr 10 15:46:04 UTC 2018 - varkoly@suse.com diff --git a/dovecot23.spec b/dovecot23.spec index 67c3cad..13883aa 100644 --- a/dovecot23.spec +++ b/dovecot23.spec @@ -135,6 +135,7 @@ Patch: dovecot-2.3.0-dont_use_etc_ssl_certs.patch Patch1: dovecot-2.3.0-better_ssl_defaults.patch Patch2: 35497604d80090a02619024aeec069b32568e4b4.diff Patch3: 5522b8b3d3ed1a99c3b63bb120216af0bd427403.diff +Patch4: 847790d5aab84df38256a6f9b4849af0eb408419.patch Summary: IMAP and POP3 Server Written Primarily with Security in Mind License: BSD-3-Clause AND LGPL-2.1-or-later AND MIT Group: Productivity/Networking/Email/Servers @@ -316,6 +317,7 @@ dovecot tree. %patch1 -p1 %patch2 -p1 %patch3 -p1 +%patch4 -p1 gzip -9v ChangeLog # Fix plugins dir. sed -i 's|#mail_plugin_dir = /usr/lib/dovecot|mail_plugin_dir = %{_libdir}/dovecot/modules|' doc/example-config/conf.d/10-mail.conf