aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregory Neil Shapiro <gshapiro@FreeBSD.org>2003-09-17 20:22:03 +0000
committerGregory Neil Shapiro <gshapiro@FreeBSD.org>2003-09-17 20:22:03 +0000
commit45a8f75825568240d0a545a84b983c87236a542a (patch)
tree7421cb446f01ab2b15f5b9c63d985db38ef208fc
parent8e86d7b39a0210cbc6c5fa544e1fb2f7695cf752 (diff)
downloadsrc-45a8f75825568240d0a545a84b983c87236a542a.tar.gz
src-45a8f75825568240d0a545a84b983c87236a542a.zip
MFC: sendmail address parsing bug fix
Approved by: so (nectar)
Notes
Notes: svn path=/releng/4.5/; revision=120179
-rw-r--r--UPDATING3
-rw-r--r--contrib/sendmail/src/parseaddr.c4
-rw-r--r--contrib/sendmail/src/version.c2
-rw-r--r--sys/conf/newvers.sh2
4 files changed, 9 insertions, 2 deletions
diff --git a/UPDATING b/UPDATING
index 6c844c226451..ee780a6ba33e 100644
--- a/UPDATING
+++ b/UPDATING
@@ -18,6 +18,9 @@ minimal number of processes, if possible, for that patch. For those
updates that don't have an advisory, or to be safe, you can do a full
build and install as described in the COMMON ITEMS section.
+20030917: p32 FreeBSD-SA-03:13.sendmail
+ Fix another address parsing buffer overflow.
+
20030916: p31 FreeBSD-SA-03:12.openssh
Follow-up fixes for OpenSSH oversized packet buffer handling.
diff --git a/contrib/sendmail/src/parseaddr.c b/contrib/sendmail/src/parseaddr.c
index 0f6bf5953ab9..4176ece83e00 100644
--- a/contrib/sendmail/src/parseaddr.c
+++ b/contrib/sendmail/src/parseaddr.c
@@ -538,7 +538,11 @@ prescan(addr, delim, pvpbuf, pvpbsize, delimptr, toktab)
addr[MAXNAME] = '\0';
returnnull:
if (delimptr != NULL)
+ {
+ if (p > addr)
+ p--;
*delimptr = p;
+ }
CurEnv->e_to = saveto;
return NULL;
}
diff --git a/contrib/sendmail/src/version.c b/contrib/sendmail/src/version.c
index fe2b78aed68c..4493bf6b6cd7 100644
--- a/contrib/sendmail/src/version.c
+++ b/contrib/sendmail/src/version.c
@@ -15,4 +15,4 @@
static char id[] = "@(#)$Id: version.c,v 8.43.4.39 2001/08/20 14:45:34 gshapiro Exp $";
#endif /* ! lint */
-char Version[] = "8.11.6p2";
+char Version[] = "8.11.6p3";
diff --git a/sys/conf/newvers.sh b/sys/conf/newvers.sh
index 7dbe0cb3defe..cd2bafc6d749 100644
--- a/sys/conf/newvers.sh
+++ b/sys/conf/newvers.sh
@@ -36,7 +36,7 @@
TYPE="FreeBSD"
REVISION="4.5"
-BRANCH="RELEASE-p31"
+BRANCH="RELEASE-p32"
RELEASE="${REVISION}-${BRANCH}"
VERSION="${TYPE} ${RELEASE}"