summaryrefslogtreecommitdiff
path: root/mail/mush/patches/patch-hdrs.c
diff options
context:
space:
mode:
Diffstat (limited to 'mail/mush/patches/patch-hdrs.c')
-rw-r--r--mail/mush/patches/patch-hdrs.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/mail/mush/patches/patch-hdrs.c b/mail/mush/patches/patch-hdrs.c
new file mode 100644
index 00000000000..0c2045384fb
--- /dev/null
+++ b/mail/mush/patches/patch-hdrs.c
@@ -0,0 +1,18 @@
+$NetBSD: patch-hdrs.c,v 1.1 2013/11/04 15:34:38 christos Exp $
+
+bump limits higher: XXX these all need to be bounded to avoid DoS from
+specially crafted error messages
+
+--- hdrs.c 2013-11-04 10:24:04.000000000 -0500
++++ hdrs.c 2013-11-04 10:28:09.000000000 -0500
+@@ -383,8 +383,8 @@
+ static char buf[HDRSIZ];
+ register char *p, *p2, *b;
+ int len, do_pad = FALSE, val, pad, got_dot, isauthor = 0, n;
+- char from[HDRSIZ], subject[256], date[64], lines[16];
+- char to[256], addr[256], name[256], user[256], status[4];
++ char from[HDRSIZ], subject[512], date[64], lines[16];
++ char to[512], addr[512], name[512], user[512], status[4];
+ char Day[3], Mon[4], Tm[8], Yr[5], Wkday[4], Zone[8], *date_p;
+
+ buf[0] = 0;