Hi Uwe,

thanks for inspecting mailleds!                                   

On Tue, May 17, 2005 at 10:03:13PM +0200, Uwe Hermann wrote:
(..)
> This is due to a bug in set_pidfilename() in pid.c:
>
>         if(opt_maildir == 1) {
>                 i=strlen(opt_m);
>                 while(i && opt_m[i-1]!='/')
>                         --i;
>                 j=strlen(opt_m)-i;
>                 size+=j;
>         }
>
> If opt_maildir == 1 (i.e. -M was given on the commandline) it tries to
> calculate strlen(opt_m). As opt_m is only initialized when -m is given on
> the commandline, this results in a strlen(NULL), which crashes the program.

Changing
        if(opt_maildir == 1) {
to
        if(opt_maildir == 1 && opt_m) {

will do the trick for -M -k. Do you have any notes on that?


> Note: I have CC'd the upstream author.

Upstream is "dead". Since 1996..


Dennis

Attachment: pgpRYIYZKAS7P.pgp
Description: PGP signature

Reply via email to