summaryrefslogtreecommitdiff
path: root/mail/mutt/patches
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/mutt/patches
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/mutt/patches')
-rw-r--r--mail/mutt/patches/patch-ai17
1 files changed, 17 insertions, 0 deletions
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 ||