Skip to main content
Submitted by Xenoveritas on
Topics

It's time for some More Pidgin Bashing after the original Pidgin bashing.

(Signed On) Logged In: 49710 days, 6 hours, 28 minutes

Those who are computer programmer types might notice that the time displayed comes out to 4,294,967,280 seconds, which is suspiciously close to 4,294,967,295 seconds. Even further, they might point out that Pidgin probably set the login time to -1, which when taken as an unsigned 32-bit number, comes out to 4,294,967,295 seconds.

This doesn't exactly absolve Pidgin, though. Apparently it's using -1 to indicate that it doesn't know how long someone has been logged in. Not necessarily a bad idea.

Then going and using the value as an unsigned value and not checking for this special value, on the other hand...