logoalt Hacker News

The Underhanded C Contest

73 pointsby ccabraldevyesterday at 10:39 PM9 commentsview on HN

Comments

BiraIgnaciotoday at 12:55 AM

> The contest was initially inspired by Daniel Horn’s Obfuscated V contest in the fall of 2004 (note: the original page is long gone, and this link goes to a snapshot from archive.org). The object of that contest was to write a simple program to count votes, that somehow miscounts the votes on election day. I was greatly impressed to see how even a short program to simply count characters in a text file can be made to fail, and fail only on one specific day, so that the bug isn't noticed in testing.

https://underhanded-c.org/_page_id_7.html

show 1 reply
AmazingEveryDayyesterday at 10:47 PM

(2015). RIP.

show 2 replies
pseudohadamardtoday at 3:21 AM

Interesting that the case they were using was the Nuclear Threat Initiative and FP uncertainties, I've audited some, ah, nuclear-physics-related code that had an issue due to FP uncertainties...

show 1 reply