WeSearch

Welcome to John Regehr's Integers in C quiz

·1 min read · 0 reactions · 0 comments · 14 views
#programming#c#software development
TL;DR · WeSearch summary

John Regehr's Integers in C quiz focuses on the intricacies of C integers and undefined behavior. The quiz aims to help developers understand potential pitfalls in C code that could lead to bugs. An archived version of the quiz has been updated to work across all browsers using simple JavaScript.

Key facts
Original article
Acepace
Read full at Acepace →
Opening excerpt (first ~120 words) tap to expand

Welcome to John Regehr's Integers in C quiz A long time ago, John Regehr wrote a very nice quiz about C integers. He's a pretty awesome expert on undefined behavior and this quiz highlights the type of stuff you need to know when auditing C code. A lot of times you’ll run into really strange scenarios which end up causing exploitable bugs later in the code. The original version was taken down long ago for reasons of WordPress compatability. I've taken an archival version and wrapped it in simple JavaScript that should work on all browsers. A few clarification that came up from Twitter threads and reddit. All other things being equal, assume GCC/LLVM x86/x64 implementation-defined behaviors.

Excerpt limited to ~120 words for fair-use compliance. The full article is at Acepace.

Anonymous · no account needed
Share 𝕏 Facebook Reddit LinkedIn Threads WhatsApp Bluesky Mastodon Email

Discussion

0 comments

More from Acepace