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.
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: signature.asc Type: application/pgp-signature Size: 197 bytes Desc: This is a digitally signed message part URL: <dovecot.org/pipermail/dovecot/attachments/20090126/70d11153/attachment-0002.bin>
Reasonably Related Threads
- [LLVMdev] Missed optimization opportunity in 3-way integer comparison case
- Speex ver 1.1.10 decoder problem
- Dovecot-1.1.9 fails to work with Thunderbird
- How to get the unique pairs of a set of pairs dataframe ?
- [LLVMdev] [DragonEgg] [Polly] Should we expect DragonEgg to produce identical LLVM IR for identical GIMPLE?