🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: mail.uk-sendmail-workers
Article #18

Sendmail 5.61 dumps core if username > 8 chars

#18
From: Andrew Macpherson
Date: Sun, 29 Oct 1989 22:41
33 lines
1278 bytes
Description:
	If the value returned by "" 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: <8910292241.15186@stl.stc.co.uk>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!purdue!tut.cis.ohio-state.edu!gem.mps.ohio-state.edu!samsung!ginosko!uunet!mcsun!ukc!edcastle!cs.glasgow.ac.uk!daemon

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!purdue!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: <8910292241.15186@stl.stc.co.uk>
Date: 29 Oct 89 22:41:10 GMT
Sender: daemon@cs.glasgow.ac.uk
Lines: 33
Approved: usenet@cs.glasgow.ac.uk