summaryrefslogtreecommitdiff
path: root/mail/exim/patches/patch-ag
blob: 736b69fdc81b8d7a6260f8dc8e5f3167b50e5257 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
$NetBSD: patch-ag,v 1.1 2004/05/07 17:47:32 abs Exp $

--- src/verify.c.orig	Fri May  7 18:23:09 2004
+++ src/verify.c
@@ -1270,7 +1270,7 @@ for (h = header_list; h != NULL; h = h->
       uschar *verb = US"is";
       int len;
 
-      while (*t != ':') *tt++ = *t++;
+      while (*t != ':' && tt < &hname[sizeof(hname)-2]) *tt++ = *t++;
       *tt = 0;
 
       /* Arrange not to include any white space at the end in the