diff options
author | agc <agc@pkgsrc.org> | 2001-05-10 14:25:34 +0000 |
---|---|---|
committer | agc <agc@pkgsrc.org> | 2001-05-10 14:25:34 +0000 |
commit | da8ad05c4faa0b6d65d4b61e8382dee0d0841fa7 (patch) | |
tree | edb5803644b98890a30738d49c53f90f5e70163f /mail/mutt/patches | |
parent | 777ff303717d3eda9c5eced947d10bbcd395b1ea (diff) | |
download | pkgsrc-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-ai | 17 |
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 || |