About The Contest

The first ever Olympiad of Misguided Geeks contest at Worse Than Failure (or OMGWTF for short) is a new kind of programming contest. Readers are invited to be creative with devising a calculator with the craziest code they can write. One lucky and potentially insane winner will get either a brand new MacBook Pro or comparable Sony VAIO laptop.

Navigation

Advertisements

Entry #100232: SecureCalculator

by Gerco Dries
This calculator is designed to be ultimately secure. Various operations on the x86 processor can overflow and overflows can cause buffer overruns and other bad things. There is no other way to avoid this then to not use an x86 processor.

Because of this, I implemented the WTFPU. A processor with a very limited instruction set and memory. It is impossible to cause harm to this environment with any input.

The calculator performs the calculations with a program written in WTFASM. To protect the integrity of the program, it has been embedded in "firmware" (calcfunc.cpp) to keep mailcious hackers from changing the code to subvert your computer.

Download0 Comments