Log in

No account? Create an account
Funny bugs - Arvind Narayanan's journal [entries|archive|friends|userinfo]

Funny bugs [Nov. 26th, 2005|06:54 pm]
Arvind Narayanan

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


[User Picture]From: sunson
2005-11-27 08:52 pm (UTC)


Thanks for pointing out. I'm on the way to filing a bug against this spell suggestion thingy.
(Reply) (Thread)
[User Picture]From: arvindn
2005-11-27 11:00 pm (UTC)

Re: Amazon

Amazon gave me a free 4-month subscription to amazon prime; do you know if this is totally random or if there is some criterion? I've already saved more than $50 in the first week of using it!
(Reply) (Parent) (Thread)
From: (Anonymous)
2005-11-27 11:12 pm (UTC)

Re: Amazon

Prime is not random. Though I'm not supposed to reveal how it happens. Damn the patents, employment contracts, "confidentiality", etc.,. etc.,. :)
(Reply) (Parent) (Thread)