SCCS-vsn: usr.sbin/sendmail/src/parseaddr.c 8.19
-static char sccsid[] = "@(#)parseaddr.c 8.18 (Berkeley) %G%";
+static char sccsid[] = "@(#)parseaddr.c 8.19 (Berkeley) %G%";
#endif /* not lint */
#include "sendmail.h"
#endif /* not lint */
#include "sendmail.h"
if (delimptr == NULL)
delimptr = &delimptrbuf;
if (delimptr == NULL)
delimptr = &delimptrbuf;
+ if (strlen(addr) >= MAXNAME)
+ {
+ usrerr("Name too long, %d characters max", MAXNAME - 1);
+ if (tTd(20, 1))
+ printf("parseaddr-->NULL\n");
+ return NULL;
+ }
+
pvp = prescan(addr, delim, pvpbuf, delimptr);
if (pvp == NULL)
{
pvp = prescan(addr, delim, pvpbuf, delimptr);
if (pvp == NULL)
{
}
CurEnv->e_to = saveto;
if (av[0] == NULL)
}
CurEnv->e_to = saveto;
if (av[0] == NULL)
+ {
+ if (tTd(22, 1))
+ printf("prescan: null leading token\n");