aboutsummaryrefslogtreecommitdiff
path: root/mail
diff options
context:
space:
mode:
authorShaun Amott <shaun@FreeBSD.org>2006-06-30 14:39:27 +0000
committerShaun Amott <shaun@FreeBSD.org>2006-06-30 14:39:27 +0000
commitcaa16197f1a39fdf3d381f6304eaff3d2f14de3a (patch)
treec667994a6d9c61f5e7415e1fbc781f74234df92f /mail
parent87619bad1dde783294120b699e7073a598b8a425 (diff)
downloadports-caa16197f1a39fdf3d381f6304eaff3d2f14de3a.tar.gz
ports-caa16197f1a39fdf3d381f6304eaff3d2f14de3a.zip
Notes
Diffstat (limited to 'mail')
-rw-r--r--mail/mutt-devel/Makefile2
-rw-r--r--mail/mutt-devel/files/patch-imap-browse.c28
2 files changed, 29 insertions, 1 deletions
diff --git a/mail/mutt-devel/Makefile b/mail/mutt-devel/Makefile
index 6ea3bbb86aad..dc4a8e6403ef 100644
--- a/mail/mutt-devel/Makefile
+++ b/mail/mutt-devel/Makefile
@@ -107,7 +107,7 @@
PORTNAME= mutt-devel
PORTVERSION= 1.5.11
-PORTREVISION?= 2
+PORTREVISION?= 3
CATEGORIES+= mail ipv6
.if defined(WITH_MUTT_NNTP)
CATEGORIES+= news
diff --git a/mail/mutt-devel/files/patch-imap-browse.c b/mail/mutt-devel/files/patch-imap-browse.c
new file mode 100644
index 000000000000..86cda3140e69
--- /dev/null
+++ b/mail/mutt-devel/files/patch-imap-browse.c
@@ -0,0 +1,28 @@
+--- imap/browse.c.orig
++++ imap/browse.c
+@@ -505,7 +505,7 @@ static int browse_get_namespace (IMAP_DA
+ if (*s == '\"')
+ {
+ s++;
+- while (*s && *s != '\"')
++ while (*s && *s != '\"' && n < sizeof (ns) - 1)
+ {
+ if (*s == '\\')
+ s++;
+@@ -516,12 +516,14 @@ static int browse_get_namespace (IMAP_DA
+ s++;
+ }
+ else
+- while (*s && !ISSPACE (*s))
++ while (*s && !ISSPACE (*s) && n < sizeof (ns) - 1)
+ {
+ ns[n++] = *s;
+ s++;
+ }
+ ns[n] = '\0';
++ if (n == sizeof (ns) - 1)
++ dprint (1, (debugfile, "browse_get_namespace: too long: [%s]\n", ns));
+ /* delim? */
+ s = imap_next_word (s);
+ /* delimiter is meaningless if namespace is "". Why does
+