![]() |
![]() OCAU News - Wiki - PC Database - QuickLinks - Pix - Sponsors |
|
|||||||
|
Sign up for a free OCAU account and this ad will go away! Search our forums with Google: |
![]() |
|
|
Thread Tools |
|
|
#1 | |
|
Member
Join Date: Feb 2002
Posts: 2,837
|
Most of you have probably seen the news about the "new y2k" bug, as seen here. Note also comment 11 on that page:
Quote:
![]() Anyone got any ideas what library it may be? So far the following devices / services have been affected:
I think the Navman runs on windows mobile 2003? Obviously Exchange runs on windows, but I'm not sure that it is not the pre-s fault. Anyway, if you find any other devices / services that have this issue, let me know, and I'll list them here; this could be rather big by tomorrow, when everyone gets back to work...
__________________
Over 200 trades and counting! BatteryFree Mouse! Where is your avatar? Fake Memory Cards Paxjs vobiscum!
Last edited by yoink; 6th January 2010 at 11:47 AM. Reason: Added symantec bug |
|
|
|
|
|
|
#2 |
|
Member
Join Date: Feb 2002
Posts: 2,837
|
Discussion on slashdot here, consensus for the SMS bug seems to be that some phones are treating the timestamp as hex rather than a two-digit BCD value as per the spec. This is most likely similar to what has happened to other devices too...
Edit: this thread blames it on "Swapped Nibbles", and confusion about endianness, can someone more knowledgeable about this issue comment?
__________________
Over 200 trades and counting! BatteryFree Mouse! Where is your avatar? Fake Memory Cards Paxjs vobiscum!
Last edited by yoink; 4th January 2010 at 10:49 AM. |
|
|
|
|
|
#3 |
|
(Banned or Deleted)
Join Date: Sep 2009
Posts: 1,481
|
The irony of your avatar does not escape me.
|
|
|
|
|
|
#4 |
|
Member
Join Date: Apr 2005
Location: Sydney
Posts: 530
|
I skimmed over it, but it seems that for the SMS one, apparently the spec says the year is sent as one byte encoded in BCD.
The upper 4 bits represent the 1's digit, and the lower 4 bits represents the 10's digit. The year is stored only as 1 byte, apparently because the SMS format pre-dates Y2K and the century is inferred by the date set on the phone. So you set the date to be 2005, and the year part that is sent is simply the 05, no mention of the 20. This is sent in BCD as 0x50, taking the 20 from the year on the phone, and read 0x50 as 05, you get 2005. This is where I get confused, if the above is true, then the date for 2010 *should* be represented as 0x01. In their BCD encoding this means 10, but in hex it means 1. Which would give 2001, not the 2016 they're getting. You mentioned a confusion over endianness, which usually means the order bytes are stored, but in this case maybe the order of the 4-bit chunks (or nibbles) are stored. If you read 0x10 as 10 and not 01, opposite to the spec, then 0x10 should be 10 in BCD, or 16 in hex. If the phone SMS software treats the byte as a hex number, it'll print 2016. If it was properly treated as BCD, technically it should be 2001, that is if the spec I found linked on your sites is the right one. If that spec is wrong, and 0x10 does mean 10 and not 01, then all makes sense... The spec linked was http://www.dreamfabric.com/sms/scts.html, and if you follow the example, you'll see each byte is read in reverse to get the numbers out.
__________________
Successful trades with: natorsom, WanGa, technoir, wahoo84, yangby, OverPAQ'd, davep, Falls, GenerAsianX, Jm3, mr_nguyen, lui_gough, Jobe, vlcalaisv8, K3nii, Thrawn, SLATYE, RILEYP, anf3h, charithjperera Last edited by mikeyyy; 4th January 2010 at 2:46 PM. |
|
|
|
|
|
#5 |
|
Member
Join Date: Oct 2006
Location: Sydney, 2119
Posts: 1,077
|
Anyone seen any other areas its messing up? We've been watching some of our older programs for any bugs or mess ups but nothing sofar, seems to be only hitting SMS and ATM's.
|
|
|
|
|
|
#6 | ||
|
Member
Join Date: Feb 2002
Posts: 2,837
|
![]() Thanks for that, makes a bit more sense ![]() Quote:
Excerpt: Quote:
__________________
Over 200 trades and counting! BatteryFree Mouse! Where is your avatar? Fake Memory Cards Paxjs vobiscum!
|
||
|
|
|
|
|
#7 |
|
Member
Join Date: Mar 2005
Location: St. Lucia, Brisbane
Posts: 2,442
|
|
|
|
|
|
|
#8 |
|
Member
Join Date: Feb 2002
Posts: 2,837
|
I doubt it - the SMS spec was around before Y2K, and the y2k issue is not really related to this problem. I think it is more of a case of the media trying to compare the problem back to something that people can relate to.
__________________
Over 200 trades and counting! BatteryFree Mouse! Where is your avatar? Fake Memory Cards Paxjs vobiscum!
|
|
|
|
|
|
#9 |
|
Member
Join Date: Nov 2002
Location: Elsewhere.
Posts: 2,811
|
http://www.theregister.co.uk/2010/01...tec_y2k10_bug/
this one is of relatively minor impact - but still rather entertaining.
__________________
Crap Joke for the Week: Q: What do you get when you cross Dracula with a used car dealer? A: Autoexec.bat -- Thinkgeek Fortunes Last edited by Tekin; 6th January 2010 at 11:37 AM. |
|
|
|
|
|
#10 |
|
Member
Join Date: Jun 2001
Location: Hobart
Posts: 1,167
|
The SpamAssassin one was a little more 'duh' (and was admittedly fixed last year... but who deploys patches, really?!)
If $date > 2010 : then "too far into future, must be spam" heh. |
|
|
|
|
|
#11 | |
|
Member
Join Date: Feb 2002
Posts: 2,837
|
Quote:
__________________
Over 200 trades and counting! BatteryFree Mouse! Where is your avatar? Fake Memory Cards Paxjs vobiscum!
|
|
|
|
|
|
|
#12 |
|
Member
Join Date: Mar 2005
Location: St. Lucia, Brisbane
Posts: 2,442
|
Which accounts for one out of a growing list of systems encountering problems. I'm not saying it *is* the Y2K problem, just I don't think it's that unreasonable for the media to be referring to it this way given there appears to be a link in at least some cases.
|
|
|
|
|
|
#13 | |
|
Member
Join Date: Nov 2002
Location: Elsewhere.
Posts: 2,811
|
Quote:
So far we've received 3 updates on the same date. from R113-R116 all dated 31/12/2009
__________________
Crap Joke for the Week: Q: What do you get when you cross Dracula with a used car dealer? A: Autoexec.bat -- Thinkgeek Fortunes |
|
|
|
|
|
|
#14 | |
|
Member
Join Date: Jan 2002
Location: Sleepwithyourdadelaide
Posts: 11,004
|
Sounds like a simple BCD -> hex conversion going wrong. I've done this countless times when writing real time clock routines for PIC microprocessors. Usually because I'm lazy and guess without actually working it out on paper before hand, then when it goes wrong I shotgun debug, the difference here is I actually unit tested my date and time stamps to make sure they were correct in the end.
Shouldn't be too hard to fix.
__________________
Quote:
|
|
|
|
|
|
|
#15 | |
|
Member
Join Date: Jan 2005
Location: Sydney
Posts: 1,335
|
Quote:
__________________
Laptop: Unibody MacBook 2.4ghz, 4GB DDR3, 750GB
Desktop: Mac Pro (8-core) 2.8Ghz, 6GB ECC RAM, 4x Gigabit Server: Q9550, 4GB 1066Mhz, 3ware 9650SE-16ML, 12.8 TB, Fedora 10 x64, 4x Gigabit |
|
|
|
|
![]() |
| Bookmarks |
|
Sign up for a free OCAU account and this ad will go away! |
| Thread Tools | |
|
|