News for hackers. Stuff that matters.
Re:The Underhanded C Contest by AmazingEveryDay on Wednesday July 01, 2026 @06:47PM (#48754148)
(2015). RIP.
Re:The Underhanded C Contest by gwern on Wednesday July 01, 2026 @06:56PM (#48754228)
Re:The Underhanded C Contest by ForOldHack on Thursday July 02, 2026 @01:40AM (#48756976)
Oh my god, and to think that OCC used to just be ways to torture the pre-processor... stunning work. Utter and complete no holds barred mud.
Re:The Underhanded C Contest by TZubiri on Wednesday July 01, 2026 @08:05PM (#48754754)
2026 calls for an Underhanded prompt contest
Re:The Underhanded C Contest by theteapot on Wednesday July 01, 2026 @08:56PM (#48755053)
Or better, sleeper agents. Anthropic released a study on this in 2024 "Sleeper Agents: Training Deceptive LLMs that Persist Through Safety Training" -- https://www.anthropic.com/research/sleeper-agents-training-d..., https://www.youtube.com/watch?v=_y9j2BoHg2c
Re:The Underhanded C Contest by sn on Thursday July 02, 2026 @03:05AM (#48757588)
I got excited thinking maybe another one was going to be held, because it was a lot of fun to do! Oh well.

If I put my submission up on github, is that considered unethical in the days of LLMs?

Re:The Underhanded C Contest by BiraIgnacio on Wednesday July 01, 2026 @08:55PM (#48755049)
> 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

Re:The Underhanded C Contest by silisili on Wednesday July 01, 2026 @09:19PM (#48755237)
The original page actually loads fine, maybe was restored later?

I looked through a few trying not to read the short description and missed a lot of simple things, really makes you think...

https://graphics.stanford.edu/~danielh/vote/vote.html

Re:The Underhanded C Contest by tpoacher on Thursday July 02, 2026 @04:11AM (#48758125)
My favourite entry was the "leaky redaction" one, which created a "redacted" version of an image in the text-based ppm image format, but in such a manner that most of the redacted information could be restored directly from the file.

The trick was to redact by converting characters to zeroes, as opposed to words. So "8" would become "0", but "256" would become "000" rather than "0". In a black and white text document, distinguishing between "0" and "000" effectively faithfully recreates the original document! But even in color pictures, it was very interesting to see how much information is still retained going from 256bits per channel down to just 3.

The method was underhanded in that the code at that section was written in a seemingly very sensible manner, enough to convince an astute auditor that this was an honest and defensible bug.

Re:The Underhanded C Contest by pseudohadamard on Wednesday July 01, 2026 @11:21PM (#48756119)
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...
Re:The Underhanded C Contest by ForOldHack on Thursday July 02, 2026 @01:41AM (#48756982)
Where you can encode an entire Command and Control server within rounding errors! You sneaky skunk!
Re:The Underhanded C Contest by aa-jv on Thursday July 02, 2026 @07:15AM (#48759616)
All software is, eventually, rounding error.
Re:The Underhanded C Contest by pseudohadamard on Saturday July 04, 2026 @12:22AM (#48782620)
It was actually due to the original developer assuming FP compares were exact. It was never an issue, the code went through huge amounts of auditing and testing, just an interesting coincidence that the underhanded contest used something so similar to its underhandedness.