Underhanded C Contest announces winners
Matthew Skala writes "The 2005 Underhanded C Contest has announced its winners: the team entry from M Joonas Pihlaja and Paul V-Khuong, and the solo entry from Natori Shin. The contest (which appeared on Slashdot in June) tests programmers' ability to hide malicious behaviour in innocent-seeming code, making it a kind of evil shadow twin to the International Obfuscated C Contest."
This one almost made it into the Linux kernel.
It *did* make it into the kernel for anyone using the BK-to-CVS gateway.
to anyone who makes a routine of putting their constants on the left hand side of the expression, that becomes not very hard to notice .. although intermixed with several megabytes of source it becomes less obvious.
What I mean is:
if (( (__WCLONE|__WALL) == options && 0 = current->uid))
will throw an error, whereas 0 == current->uid will not.