大山 礼仁 writes:

Hi! this is Reinin Oyama from Japan.

I found a BUG in Courier-IMAP maildir/maildirpurgetmp.c in line 98 -
106.

if pointer p is set  p=m
then
  "Not INITIALIZED" malloced memory is strcmped in function
maildirquota_countfolder!
And
if (!m) return;
Statement is "The DAY after THE FAIR!" if malloc is failed!
Please correct them like follows!

        if (!m) return;
        p=strrchr(maildir, '/');
        if (p)
                ++p;
        else{
                p=m;
                p[0]=0;
        }
        adjustquota=maildirquota_countfolder(p);

Not quite. It should simply be p=".";


Although this is technically a bug, this codepath is never used, at the
moment.  All uses of maildir_purge(), at present, involve a subfolder.




------------------------------------------------------- This SF.net email is sponsored by:Crypto Challenge is now open! Get cracking and register here for some mind boggling fun and the chance of winning an Apple iPod: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en _______________________________________________ courier-users mailing list [EMAIL PROTECTED] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to