It looks like you're using an Ad Blocker.
Please white-list or disable AboveTopSecret.com in your ad-blocking tool.
Thank you.
Some features of ATS will be disabled while you continue to use an ad-blocker.
The sheer volume of data would have swamped the data collection system ...
Originally posted by skeptic_al
reply to post by coder22
It doesn't matter if this story is true or false.
Think of it this way in terms of Logic. If they wrote Perfect Code with no bugs, why would
anyone even think about upgrading. Due to the complexity and decreasing chip size of hardware they also breakdown much easier and more often, supporting M$ model of why make Perfect Code. Why do car manufactures design cars to last 10 years, or in the case of GM 5 years, because nobody would buy a new one, they would have no need to. Everything IS designed to last X Years, the problem is that X is getter shorter and shorter, so we are constantly replacing things.
Originally posted by coder22
For those of you who are developers - below is the kind of thing I'm talking about - dodgy code written on purpose that looks legit, that can get past a check by other programmers looking over the code. Then, when said mistake is discovered, it looks like an honest mistake.
for(c = buf;*c;c++) [
if(isdigit(*c)) [
if(!ws) [ // new number, increment location.
ws = 1; x++;
if(x >= width * 3) [
y++; x = 0;
]
]
if(x > rx * 3 && x ry && y < ry + rheight)
putchar('0');
else
putchar(*c);
] else [
ws = 0;
putchar(*c);
]
]
Now, programmers - tell me what is wrong with that code?
EDIT: ATS autoformatted out the tabs and indents but you see what I mean....edit on 24-4-2011 by coder22 because: (no reason given)
Originally posted by coder22
reply to post by 547000
Looks like pretty boring code though doesn't it? Would you expect that code to have a nasty outcome? - The functions don't matter.
Originally posted by coder22
reply to post by 547000
Yes Sir, you are indeed correct - But the point being - if this code was part of other software code, a programmer, not specifically looking for something nasty will pass over this on most occasions. As it's only a few lines, and looks like a simple looping mistake.
My buddy says that this is the kind of thing the Microsoftprobable that the devs coders are told to do. Now, it's only a small group of programmers. They are designing the bugs to get past the eyes of the other programmers, of course, their met ds would probably be much more advanced than my example posted above. (As it was just an example)
Originally posted by coder22
reply to post by 547000
^ The above code executed in the bash shell will make most linux systems crash. (I think Ubuntu is safe - try it with Fedora / RHEL)
(Had to insert a space when defining the : function as it gives a sad face...)edit on 24-4-2011 by coder22 because: (no reason given)