Welcome to John Regehr's Integers in C quiz
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.
- ▪John Regehr is an expert on undefined behavior in C programming.
- ▪The quiz highlights important knowledge for auditing C code.
- ▪The original quiz was removed due to WordPress compatibility issues.
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.