Secure Coding mailing list archives

2010 bug hits millions of Germans | World news | The Guardian


From: ljknews at mac.com (ljknews)
Date: Thu, 07 Jan 2010 12:38:31 -0400

At 10:43 AM -0600 1/7/10, Stephen Craig Evans wrote:

I am VERY curious to learn how these happened... Only using the last
digit of the year? Hard for me to believe. Maybe it's in a single API
and somebody tried to be too clever with some bit-shifting.

My wife says that in the lead-up to the year 2000 she caught
some programmers "fixing" Y2K bugs by continuing to store
year numbers in two digits and then just prefixing output
with 19 if the value was greater than some two digit number
and prefixing output with 20 if the value was less than or
equal to that two digit number.

Never underestimate programmer creativity.

Never overestimate programmer precision.
-- 
Larry Kilgallen


Current thread: