summaryrefslogtreecommitdiff
path: root/mail
diff options
context:
space:
mode:
authoragc <agc@pkgsrc.org>2001-05-10 14:25:34 +0000
committeragc <agc@pkgsrc.org>2001-05-10 14:25:34 +0000
commitda8ad05c4faa0b6d65d4b61e8382dee0d0841fa7 (patch)
treeedb5803644b98890a30738d49c53f90f5e70163f /mail
parent777ff303717d3eda9c5eced947d10bbcd395b1ea (diff)
downloadpkgsrc-da8ad05c4faa0b6d65d4b61e8382dee0d0841fa7.tar.gz
PR 12890, from john heasley <heas@shrubbery.net>
Don't try to dereference a NULL pointer.
Diffstat (limited to 'mail')
-rw-r--r--mail/mutt/distinfo3
-rw-r--r--mail/mutt/patches/patch-ai17
2 files changed, 19 insertions, 1 deletions
diff --git a/mail/mutt/distinfo b/mail/mutt/distinfo
index 036270b888e..6667531ee3b 100644
--- a/mail/mutt/distinfo
+++ b/mail/mutt/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.2 2001/04/20 13:10:00 agc Exp $
+$NetBSD: distinfo,v 1.3 2001/05/10 14:25:34 agc Exp $
SHA1 (mutt-1.2.5i.tar.gz) = a8eceff4693120da1d39f042f04668caa34deaa9
Size (mutt-1.2.5i.tar.gz) = 1973923 bytes
@@ -10,3 +10,4 @@ SHA1 (patch-ae) = 4c956d8c0181025e99942ca688b3df7b4a27b1f7
SHA1 (patch-af) = 7504e8226f3974aa4fcc76f0b13b79e4044073a6
SHA1 (patch-ag) = 99c2393ff5d2be47e889ee9ab6ed6ec058ebf4cc
SHA1 (patch-ah) = 36004ff9b20a3cf119c6163467f587c51a1d1e36
+SHA1 (patch-ai) = f1a3c47666dd308e4d8938939a50a5553220f736
diff --git a/mail/mutt/patches/patch-ai b/mail/mutt/patches/patch-ai
new file mode 100644
index 00000000000..bde48e1abc9
--- /dev/null
+++ b/mail/mutt/patches/patch-ai
@@ -0,0 +1,17 @@
+$NetBSD: patch-ai,v 1.3 2001/05/10 14:25:35 agc Exp $
+
+If Subject is NULL, don't try to dereference it.
+
+--- rfc2047.c 2001/05/10 14:11:38 1.1
++++ rfc2047.c 2001/05/10 14:12:35
+@@ -390,6 +390,10 @@
+
+ dlen--; /* save room for the terminal nul */
+
++ if (s == NULL) {
++ return;
++ }
++
+ while (*s && dlen > 0)
+ {
+ if ((p = strstr (s, "=?")) == NULL ||