||[Nov. 26th, 2005|06:54 pm]
When I was downloading the Fedora 4 Core dvd image, wget thought the file size was negative 1.5 gigabytes :) Since the file size is more than 2^31 but less than 2^32, there is no reason this should happen (i.e file size should be represented as an unsigned instead of signed integer), but presumably the file size is a return value for some function which returns -1 on error so it is not possible to use unsigned.
Firefox was even funnier. Until the first 2^31 bytes were downloaded there was no problem, but after that it thought I was downloading at -174.-6 KB/second. I kid you not.
Finally here's a gem from amazon