Date: Tuesday, June 12, 2018 @ 17:44:45
  Author: foxxx0
Revision: 342612

upgpkg: dovecot 2.3.1-5

add fix segfault patch

Added:
  dovecot/trunk/dovecot-0006-fix-segfault-when-overquota.patch
Modified:
  dovecot/trunk/PKGBUILD

------------------------------------------------+
 PKGBUILD                                       |    9 +++++---
 dovecot-0006-fix-segfault-when-overquota.patch |   25 +++++++++++++++++++++++
 2 files changed, 31 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2018-06-12 17:42:53 UTC (rev 342611)
+++ PKGBUILD    2018-06-12 17:44:45 UTC (rev 342612)
@@ -11,7 +11,7 @@
 
 pkgname=dovecot
 pkgver=2.3.1
-pkgrel=4
+pkgrel=5
 
 pkgdesc="An IMAP and POP3 server written with security primarily in mind"
 url="http://dovecot.org/";
@@ -32,7 +32,8 @@
         'dovecot.tmpfilesd'
         'dovecot.ld.so.conf'
         'dovecot-0004-fix-replication-hang-ioloop.patch'
-        'dovecot-0005-fix-mail_user_home_mkdir.patch')
+        'dovecot-0005-fix-mail_user_home_mkdir.patch'
+        'dovecot-0006-fix-segfault-when-overquota.patch')
 
 sha256sums=('0883821b97fd02a084a84b9469a681f7e6edc56541d854b5419d98891c51fb93'
             'SKIP'
@@ -40,7 +41,9 @@
             'bb7620be7fc0217d77fcac940441c2abbd9efc6ef660153288d09ba412e27e06'
             'a457a1691cfa82495fc0503bfa4b61e54b149e63400fe0f568dff2c24a3f7858'
             '38d944d7fb3790f1ac64ecd855a37ba5c16374a83b374306ce6296a598f5257c'
-            'd4e34418dbe1b3ddd10e859bccd735e8708081916a5be3d35a8a54bdf8cda70c')
+            'd4e34418dbe1b3ddd10e859bccd735e8708081916a5be3d35a8a54bdf8cda70c'
+            '27f3624ea33165c5eddd0bcdb2c92cb92c559b6e1e74975c72241383656c3b2a')
+
 validpgpkeys=(
   'E643F0BDFDCD04D9FFCB6279C948525140558AC9' # Timo Sirainen <t...@iki.fi>
   '2BE74AAB3EE754DFB9C80D3318A348AEED409DA1' # Dovecot Community Edition

Added: dovecot-0006-fix-segfault-when-overquota.patch
===================================================================
--- dovecot-0006-fix-segfault-when-overquota.patch                              
(rev 0)
+++ dovecot-0006-fix-segfault-when-overquota.patch      2018-06-12 17:44:45 UTC 
(rev 342612)
@@ -0,0 +1,25 @@
+From 847790d5aab84df38256a6f9b4849af0eb408419 Mon Sep 17 00:00:00 2001
+From: Stephan Bosch <stephan.bo...@dovecot.fi>
+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;

Reply via email to