Free Republic
Browse · Search
General/Chat
Topics · Post Article

To: ShadowAce

A very clever backdoor indeed. Good plausible deniability too, since this is such a common typo for C programmers, and one that isn’t even caught by syntax checkers, since it is still perfectly valid syntax. If they ever did track down who inserted it, they couldn’t prove that someone didn’t just “goof up” and forget the second equal sign.


5 posted on 10/10/2013 1:02:57 PM PDT by Boogieman
[ Post Reply | Private Reply | To 1 | View Replies ]


To: Boogieman
A very clever backdoor indeed. Good plausible deniability too, since this is such a common typo for C programmers, and one that isn’t even caught by syntax checkers, since it is still perfectly valid syntax.

Yes, it's actually a C idiom. E.g., to process the contents of a file:

while (bytes_read = read(buffer)) {
    // Work with buffer
}
// ... Dropped out of read loop because zero bytes were read

Commonly used compilers can be set to warn when the above is used, requiring it to be changed to:

while ((bytes_read = read(buffer)) != 0) {
    // Work with buffer
}
// ... Dropped out of read loop because zero bytes were read

to avoid the warning. Of course, the assignment still takes place whether the target is bytes_read or current->uid.

12 posted on 10/10/2013 1:27:21 PM PDT by cynwoody
[ Post Reply | Private Reply | To 5 | View Replies ]

To: Boogieman

Many programming languages have since changed Boolean and equality checks to utilize linguistic code in addition to old-school code.

A good example is Microsoft’s Powershell or VBscript where one can use equality identifiers such as “-eq” or “-lt/-gt” (less-than/greater-than) in addition to the conventional syntax.

I’ve taken a liking to -eq or even -like for a more loose check.

This article, by the way, continues to bolster the open source movement as a much better, safer alternative to closed-source operating systems like Windows and OSX. Huzzah for community acceptance!


21 posted on 10/10/2013 3:35:46 PM PDT by rarestia (It's time to water the Tree of Liberty.)
[ Post Reply | Private Reply | To 5 | View Replies ]

Free Republic
Browse · Search
General/Chat
Topics · Post Article


FreeRepublic, LLC, PO BOX 9771, FRESNO, CA 93794
FreeRepublic.com is powered by software copyright 2000-2008 John Robinson