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

mail500 bombs on large ML with debug on (ITS#368)



Full_Name: Heiko W.Rupp
Version: 1.2.7
OS: NetBSD
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (193.141.42.125)


mail500 can die with a bus error when delivering mail to a mailinglist that has
many receipients (in my case 73 ). The rfc822 email addresses of those 73
recepients
may (with long domain names) take more than 1024 bytes. When running with debug
on, the provided buffer ``buf[1024]'' is just too small as in:


static void
send_message( char **to )
{
        int     pid;
#ifndef HAVE_WAITPID
        WAITSTATUSTYPE  status;
#endif

        if ( debug ) {
                char    buf[1024];
                int     i;


Increasing buffer size to 10240 is a first fix, but this should be allocated 
dynamically.