diff options
author | eik <eik@FreeBSD.org> | 2004-05-06 22:21:51 +0800 |
---|---|---|
committer | eik <eik@FreeBSD.org> | 2004-05-06 22:21:51 +0800 |
commit | 4574cb8fe98861104a5f312b29a3cac6b27fdb5c (patch) | |
tree | ad2a99716572ffc9e1c61d3ef2cc1000a31e71cb /mail/exim/files | |
parent | 6f56f1e122926c4fa445ff00ee544ee83eedf7db (diff) | |
download | freebsd-ports-gnome-4574cb8fe98861104a5f312b29a3cac6b27fdb5c.tar.gz freebsd-ports-gnome-4574cb8fe98861104a5f312b29a3cac6b27fdb5c.tar.zst freebsd-ports-gnome-4574cb8fe98861104a5f312b29a3cac6b27fdb5c.zip |
Fix potential SEGV on long header when verify = header_syntax is used
this is not set not in the default configuration, check with
grep 'verify.*=.*header_syntax' /usr/local/etc/exim/configure
<http://www.guninski.com/exim1.html>
Diffstat (limited to 'mail/exim/files')
-rw-r--r-- | mail/exim/files/patch-src::verify.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/mail/exim/files/patch-src::verify.c b/mail/exim/files/patch-src::verify.c new file mode 100644 index 000000000000..6579e0829129 --- /dev/null +++ b/mail/exim/files/patch-src::verify.c @@ -0,0 +1,22 @@ +# +# Fix SEGV on long headers when verify = header_syntax is used +# <http://www.guninski.com/exim1.html> +# +--- src/verify.c.orig Thu May 6 15:46:44 2004 ++++ src/verify.c Thu May 6 15:47:27 2004 +@@ -1264,14 +1264,9 @@ + + if (recipient == NULL && Ustrcmp(errmess, "empty address") != 0) + { +- uschar hname[64]; +- uschar *t = h->text; +- uschar *tt = hname; ++ uschar *t; + uschar *verb = US"is"; + int len; +- +- while (*t != ':') *tt++ = *t++; +- *tt = 0; + + /* Arrange not to include any white space at the end in the + error message. */ |