undefined-behavior

Tag

Cards List
#undefined-behavior

Dependable C

Lobsters Hottest · 5d ago Cached

A comprehensive resource providing guidelines and recommendations for writing dependable, safe C code, covering undefined behavior, memory model, and version-specific advice.

0 favorites 0 likes
#undefined-behavior

Semantic reification: how to generate UB-free code with arbitrary control flow?

Hacker News Top · 2026-06-03 Cached

Reify is an open-source random C program generator based on semantic reification that produces undefined-behavior-free code for compiler testing. It has already uncovered 59 bugs in GCC and LLVM, plus additional bugs in OpenJ9 and Linux's eBPF runtime.

0 favorites 0 likes
#undefined-behavior

John Regehr's Integers in C Quiz

Lobsters Hottest · 2026-05-21 Cached

An archival version of John Regehr's C integers quiz, wrapped in JavaScript for browser compatibility, highlighting tricky undefined behavior and integer issues in C code.

0 favorites 0 likes
#undefined-behavior

Everything in C is undefined behavior

Hacker News Top · 2026-05-20 Cached

An experienced C++ developer argues that all non-trivial C and C++ code contains undefined behavior, making memory safety impossible and calling into question the continued use of these languages in modern software development.

0 favorites 0 likes
#undefined-behavior

Bun Rust rewrite: "codebase fails basic miri checks, allows for UB in safe rust"

Hacker News Top · 2026-05-15 Cached

Bun's Rust rewrite fails basic Miri checks, allowing undefined behavior in safe Rust, raising serious safety concerns.

0 favorites 0 likes
#undefined-behavior

C++26: Standard library hardening

Lobsters Hottest · 2026-05-13 Cached

C++26 is introducing standardized library hardening to catch common undefined behavior (like out-of-bounds access) at runtime, based on Google's production experience showing a mere 0.30% performance overhead and a 30% reduction in segmentation faults.

0 favorites 0 likes
#undefined-behavior

Int a = 5; a = a++ + ++a; a =? (2011)

Hacker News Top · 2026-05-12 Cached

Analyzes the undefined behavior of the C/C++ expression 'a = a++ + ++a;' for int a=5, demonstrating three possible results (11, 12, 13) due to compiler-dependent evaluation order and post-increment handling, with theoretical and experimental breakdown.

0 favorites 0 likes
← Back to home

Submit Feedback