IDA - Sendmail 5.61 - Null pointer dereference in savemail.c

Rob McMahon cudcv at warwick.ac.uk
Sun Mar 26 02:13:37 AEST 1989


Sendmail 5.61 with the IDA 1.2.5 patches tries to dereference a null pointer
if PostMasterCopy is null.

RCS file: savemail.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -c -r1.1 -r1.2
*** /tmp/,RCSt1a08470	Sat Mar 25 16:11:16 1989
--- /tmp/,RCSt2a08470	Sat Mar 25 16:11:17 1989
***************
*** 406,412 ****
  	to = buf;
  	for (q = returnq; q != NULL; q = q->q_next) {
  	    if (q->q_alias == NULL)
! 		if (strcmp(q->q_paddr, PostMasterCopy) == 0)
  		    cc = q->q_paddr;
  		else {
  		    /* Not Postmaster; already on the To: line? */
--- 406,412 ----
  	to = buf;
  	for (q = returnq; q != NULL; q = q->q_next) {
  	    if (q->q_alias == NULL)
! 		if (PostMasterCopy && strcmp(q->q_paddr, PostMasterCopy) == 0)
  		    cc = q->q_paddr;
  		else {
  		    /* Not Postmaster; already on the To: line? */

Rob
-- 
UUCP:   ...!mcvax!ukc!warwick!cudcv	PHONE:  +44 203 523037
JANET:  cudcv at uk.ac.warwick             ARPA:   cudcv at warwick.ac.uk
Rob McMahon, Computing Services, Warwick University, Coventry CV4 7AL, England



More information about the Comp.bugs.4bsd.ucb-fixes mailing list