undefined-behavior

Tag

Cards List
#undefined-behavior

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

Hacker News Top · 10h ago 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 · 2d ago 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 · 3d ago 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