1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-01 08:27:59 +00:00

Correct address parsing bug that is believed to be remotely exploitable.

Submitted by:	Michal Zalewski <lcamtuf@dione.ids.pl>
This commit is contained in:
Jacques Vidrine 2003-09-17 15:10:36 +00:00
parent 5ef517c097
commit 58fec67565
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/vendor/sendmail/dist/; revision=120169

View File

@ -700,7 +700,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;
}