Article View: mail.uk-sendmail-workers
Article #19Sendmail 5.61 dumps core if username > 8 chars
From: Andrew Macpherson
Date: Sun, 29 Oct 1989 22:51
Date: Sun, 29 Oct 1989 22:51
33 lines
1412 bytes
1412 bytes
Description:
If the value returned by "getlogin" does not match your passwd
entry, (it has been truncated for instance), one will
de-reference a null pointer in "username". This results in a
segmentation violation on a SUN
Repeat-By:
Arrange to log in as "postmaster", attempt to send mail
Fix:
Apply this patch.
Index: conf.c
Prereq: 5.17
*** conf.oc Sun Oct 29 22:18:28 1989
--- conf.c Sun Oct 29 22:23:32 1989
***************
*** 229,236 ****
else
{
! pw = getpwnam(myname);
! if(getuid() != pw->pw_uid)
{
pw = getpwuid(getuid());
if (pw != NULL)
--- 229,236 ----
else
{
! if((pw = getpwnam(myname)) == NULL
! || (getuid() != pw->pw_uid))
{
pw = getpwuid(getuid());
if (pw != NULL)
Technical Details
Message-ID:
<8910292251.15263@stl.stc.co.uk>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!gem.mps.ohio-state.edu!samsung!ginosko!uunet!mcsun!ukc!edcastle!cs.glasgow.ac.uk!daemonShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!gem.mps.ohio-state.edu!samsung!ginosko!uunet!mcsun!ukc!edcastle!cs.glasgow.ac.uk!daemon From: andrew@stl.stc.co.uk (Andrew Macpherson) Newsgroups: mail.uk-sendmail-workers,comp.mail.sendmail Subject: Sendmail 5.61 dumps core if username > 8 chars Message-ID: <8910292251.15263@stl.stc.co.uk> Date: 29 Oct 89 22:51:12 GMT Sender: daemon@cs.glasgow.ac.uk Lines: 33 Approved: usenet@cs.glasgow.ac.uk Index: lib/sendmail/conf.c 4.3BSD Apparently-To: uk-sendmail-workers%cs.hw.ac.uk@uk.ac.ukc Apparently-To: 4bsd-bugs@edu.berkeley