[mutt] 01/01: debian/patches/upstream/883106-fix-crash-in-mbox_to_udomain.patch: simple patch to fix a crash in mbox_to_udomain() (Closes: 883106)

Antonio Radici antonio at moszumanska.debian.org
Sun Dec 3 10:58:55 UTC 2017


This is an automated email from the git hooks/post-receive script.

antonio pushed a commit to branch master
in repository mutt.

commit d1efcd5ab75d771836deca265ff8ab2798583077
Author: Antonio Radici <antonio at debian.org>
Date:   Thu Nov 30 21:23:08 2017 +0000

    debian/patches/upstream/883106-fix-crash-in-mbox_to_udomain.patch: simple patch to fix a crash in mbox_to_udomain() (Closes: 883106)
---
 debian/changelog                                   |  8 ++++++++
 debian/patches/series                              |  1 +
 .../883106-fix-crash-in-mbox_to_udomain.patch      | 22 ++++++++++++++++++++++
 3 files changed, 31 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index d180dc0..6a0e78e 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,11 @@
+mutt (1.9.1-6) UNRELEASED; urgency=medium
+
+  * debian/patches:
+    + upstream/883106-fix-crash-in-mbox_to_udomain.patch: simple patch to fix
+      a crash in mbox_to_udomain() (Closes: 883106)
+
+ -- Antonio Radici <antonio at debian.org>  Thu, 30 Nov 2017 21:22:13 +0000
+
 mutt (1.9.1-5) unstable; urgency=medium
 
   * debian/NEWS: adding a more detailed message about the new mailcap behavior
diff --git a/debian/patches/series b/debian/patches/series
index d89b8d6..ba1386b 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -10,6 +10,7 @@ misc/gpg.rc-paths.patch
 misc/smime.rc.patch
 upstream/528233-readonly-open.patch
 upstream/383769-score-match.patch
+upstream/883106-fix-crash-in-mbox_to_udomain.patch
 upstream/fast-imap-flag-handling.patch
 upstream/imap-poll-timeout.patch
 upstream/maildir-hash.patch
diff --git a/debian/patches/upstream/883106-fix-crash-in-mbox_to_udomain.patch b/debian/patches/upstream/883106-fix-crash-in-mbox_to_udomain.patch
new file mode 100644
index 0000000..638c45d
--- /dev/null
+++ b/debian/patches/upstream/883106-fix-crash-in-mbox_to_udomain.patch
@@ -0,0 +1,22 @@
+This patch fixes bug 883106 in Debian.
+
+---
+ mutt_idna.c | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/mutt_idna.c b/mutt_idna.c
+index 2923444f..7a956fdc 100644
+--- a/mutt_idna.c
++++ b/mutt_idna.c
+@@ -57,6 +57,8 @@ static int mbox_to_udomain(const char *mbx, char **user, char **domain)
+   char *p = NULL;
+ 
+   mutt_str_replace(&buff, mbx);
++  if (!buff)
++    return -1;
+ 
+   p = strchr(buff, '@');
+   if (!p || !p[1])
+-- 
+2.11.0
+

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mutt/mutt.git



More information about the pkg-mutt-commits mailing list