[Date Prev][Date Next] [Chronological] [Thread] [Top]

maildap on Solaris abends on sprintf (ITS#1022)



Full_Name: Jim Dutton
Version: 2.0.7
OS: Solaris-2.8 (2.7)
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (131.230.6.141)


Solaris (2.8/2.7) OpenLDAP-2.0.7 maildap keeps abending at the second sprintf
command in main() [approx line# 340]. FreeBSD and NetBSD don't have a problem.
It appears to be a problem with "domainpart". The recipient address used was:
'jim_dutton@dutton2.it.siu.edu' (a valid CN entry). Mail500 has no problem with
this recipient address on Solaris.


                if ( domainpart ) {
                syslog(LOG_INFO,"***** 'if ( domainpart )' *****");
                        sprintf( address, "%s@%s", localpart, domainpart );
                        free( localpart );
                        free( domainpart );
                } else {
                syslog(LOG_INFO,"***** '} else {' *****");
                        sprintf( address, "%s@%s", localpart, domainpart );
                syslog(LOG_INFO,"--- after sprintf, before 'free(localpart)' --
-");
                        free( localpart );
                }
                syslog(LOG_INFO,"--- call 'do_address' ---");
                do_address( address, &tolist, &numto, &togroups, &ngroups,


Feb 13 10:59:36 dutton2.it.siu.edu maildap[13753]:
 [ID 321809 mail.info] --- in 'split_address' address: [jim_dutton]
Feb 13 10:59:36 dutton2.it.siu.edu maildap[13753]:
 [ID 501080 mail.info] --- localpart: [jim_dutton]
Feb 13 10:59:36 dutton2.it.siu.edu maildap[13753]:
 [ID 103947 mail.info] ***** '} else {' *****
Feb 13 10:59:36 dutton2.it.siu.edu sendmail[13752]:
 [ID 801593 mail.crit] f1DGxaI13750:
 SYSERR(root): mailer maildap died with signal 11 (core dumped)