2.3.12 statuscahe off_t size bug

Rudy Gevaert Rudy.Gevaert at UGent.be
Tue Apr 29 03:26:35 EDT 2008


Hi,

Could this be revised and imported in CVS please?


John Capo wrote:
> Found a bug handling the off_t index_size value in the statuscache
> code.  The code assumes off_t is a 32 bits and the message count gets
> written as 0.
> 
> (gdb) p *scdata
> $22 = {statusitems = 63, index_mtime = 1208893338, index_ino = 1974639, index_size = 6581528, 
>   messages = 74789, recent = 174, uidnext = 1547527, uidvalidity = 1125360596, unseen = 74743, 
>   highestmodseq = 0}
> (gdb) n
> 247         r = DB->store(statuscachedb, key, keylen, data, datalen, NULL);
> (gdb) p data
> $23 = "3 63 1208893338 1974639 6581528 0 74789 174 1547527 1125360596 74743\000
> 
> The attached patch assumes off_t is 64 bits.  Are there any 32 bit
> off_t systems left?
> 
> John Capo
> 
> 


-- 
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Rudy Gevaert          Rudy.Gevaert at UGent.be          tel:+32 9 264 4734
Directie ICT, afd. Infrastructuur ICT Department, Infrastructure office
Groep Systemen                    Systems group
Universiteit Gent                 Ghent University
Krijgslaan 281, gebouw S9, 9000 Gent, Belgie               www.UGent.be
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --


More information about the Cyrus-devel mailing list