[mutt] 02/02: fix-array-bounds-error.patch: fix a off-by-one in neomutt.

Antonio Radici antonio at moszumanska.debian.org
Sun Sep 11 13:53:03 UTC 2016


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

antonio pushed a commit to branch master
in repository mutt.

commit 7ca865e4acbdbe938fcf905932c56062c4a32be4
Author: Antonio Radici <antonio at debian.org>
Date:   Sun Sep 11 14:50:49 2016 +0100

    fix-array-bounds-error.patch: fix a off-by-one in neomutt.
---
 debian/changelog                                         |  1 +
 .../patches/neomutt-devel/fix-array-bounds-error.patch   | 16 ++++++++++++++++
 debian/patches/series                                    |  1 +
 3 files changed, 18 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 3e3b644..1958bfb 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -3,6 +3,7 @@ mutt (1.7.0-4) UNRELEASED; urgency=medium
   * debian/patches/neomutt-devel:
     + 837416-avoid-segfault-when-listing-mailboxes-on-startup.patch: to prevent
       segfaulting when mutt -y is launched (Closes: 837416).
+    + fix-array-bounds-error.patch: fix a off-by-one in neomutt.
 
  -- Antonio Radici <antonio at debian.org>  Sun, 11 Sep 2016 14:38:40 +0100
 
diff --git a/debian/patches/neomutt-devel/fix-array-bounds-error.patch b/debian/patches/neomutt-devel/fix-array-bounds-error.patch
new file mode 100644
index 0000000..fc838dc
--- /dev/null
+++ b/debian/patches/neomutt-devel/fix-array-bounds-error.patch
@@ -0,0 +1,16 @@
+This patch fixes a off-by-one in send.c
+
+Reported as neomutt issue:
+https://github.com/neomutt/neomutt/issues/139
+
+--- a/send.c
++++ b/send.c
+@@ -1913,7 +1913,7 @@
+       if (snprintf (errorstr, STRING,
+         _("Message contains magic keyword \"%s\", but no attachments. Not sending."), AttachKeyword) == -1)
+       {
+-        errorstr[STRING] = 0; // terminate if need be. our string shouldn't be this long.
++        errorstr[STRING-1] = 0; // terminate if need be. our string shouldn't be this long.
+       }
+       mutt_error (errorstr);
+     }
diff --git a/debian/patches/series b/debian/patches/series
index 678f9ae..2d45bcf 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,4 +1,5 @@
 neomutt-20160910.patch
+neomutt-devel/fix-array-bounds-error.patch
 neomutt-devel/fix-tarname-in-ac-init.patch
 neomutt-devel/832971-reset-xlabel.patch
 neomutt-devel/837416-avoid-segfault-when-listing-mailboxes-on-startup.patch

-- 
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