[Bug 1529] 32bit rollover problem rsyncing files greater than 4GB in size

samba-bugs at samba.org samba-bugs at samba.org
Tue Sep 6 13:37:22 GMT 2005


https://bugzilla.samba.org/show_bug.cgi?id=1529





------- Additional Comments From thomas at suse.de  2005-09-06 06:37 -------
Now when len is OFF_T is it possible that sum->count (which is size_t) in
sum_sizes_sqroot() will rollover too at line:
        sum->count      = (len + (blength - 1)) / blength; ?

When we assume all variables have all bits set:
2^64 + (2^32 - 1) / 2^32 = 2^32 + 1

But sum->count can only represent 2^32 and thereofre sum->count will be 0.

Did I made a mistake here?




-- 
Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.


More information about the rsync mailing list