[Dovecot] uint_cmp bug

Timo Sirainen tss at iki.fi
Mon Jan 26 21:12:51 EET 2009


On Mon, 2009-01-26 at 11:53 -0600, Mike Abbott wrote:
> In reviewing the differences between 1.1.8 and 1.1.9 I saw a probable  
> bug in the new function uint_cmp() in src/lib-storage/index/maildir/ 
> maildir-sync-index.c:
>          if (*i1 < *i2)
>                  return -1;
>          else if (*i1 > *i2)
>                  return -1;
>          else
>                  return 0;
> The second case should return 1 not -1.

Oh, thanks! I did try a couple of tests for that code but they worked
there. I guess qsort() can go to infinite loop because of this. So
another reason to get 1.1.10 out today.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
Url : http://dovecot.org/pipermail/dovecot/attachments/20090126/70d11153/attachment.bin 


More information about the dovecot mailing list