On 03/26/2010 08:25 AM, Riku Voipio wrote: > + if (len == 0) { > + return 0; > + }
This part is ok. > > - if (start + len - 1 < start) { > + if (start + len < start) { This part re-introduces the bug I fixed. start = 0xffffff00 len = 256 should succeed, and it won't reverting the (len-1) change. r~