Winners of the 7th Underhanded C Contest
underhanded-c.org
underhanded-c.org
Instead it got judged as being a 'simple buffer overflow'.
Grrr.
http://www.codersnotes.com/files/piupiu.zip
See surveil.txt for notes first.
Someone below asked what makes this different from the Obfuscated C contest. In this contest, the idea is to make code that looks very clean and innocent. Entries that hide their behavior in weird ugly macros or just general C complexity are not really in the spirit of the contest. I tried to make my entry very clean so that there is obviously no malicious code anywhere in it.
Hah- "Piu-Piu" is the Brazilian-Portuguese name for the Looney Tunes character Tweety:
Definitely makes me feel less safe considering the amount of C code there is in tools we depend on.
AUDIT properly looks like a macro, which makes it even more likely a reviewer wouldn't notice __isleap is one as well.
Good idea, though. I'd like it.
There are likely to be add-ons for Vim and Emacs that actually parse the source instead of just pattern matching for syntax highlighting.
How can deeper integration between any language and tools then be compatible with rms's and/or GNU's and/or the FSF's ideology?
(Maybe the answer is, "Use Lisp since the syntax is the AST." I'm okay with that. :)
So, you basically need an IDE to do robust C syntax coloring.