Re: BUG in chkmail() - incorrect check for padvance() stop condition

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 03/04/2023 13:39, Denys Vlasenko wrote:
chkmail(void)
{
         ...
         for (mtp = mailtime; mtp < mailtime + MAXMBOXES; mtp++) {
                 int len;

                 len = padvance_magic(&mpath, nullstr, 2);
                if (!len)  <================================== WRONG, should be "len < 0"

You are correct. A patch for this has been submitted, <https://patchwork.kernel.org/project/dash/patch/20211002203732.6175-1-june@causal.agency/>, but is still pending.

Cheers,
Harald van Dijk



[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux