Tagged articles
3 articles
Page 1 of 1
21CTO
21CTO
May 17, 2026 · Fundamentals

How C++26’s Hardened Standard Library Tackles Undefined Behavior

The article explains that undefined behavior in C++ often stems from standard‑library misuse, describes the new C++26 P3471R4 hardened library that turns such UB into runtime contract violations, cites Google’s production data showing over a thousand bugs found with only 0.30% overhead and a 30% drop in segfaults, and details how to enable and use the feature.

CContractsHardening
0 likes · 8 min read
How C++26’s Hardened Standard Library Tackles Undefined Behavior
Code Mala Tang
Code Mala Tang
Aug 24, 2025 · Backend Development

Can You Trust Your Compiler? Discover Hidden Bugs and Protection Tips

This article examines why compilers can be unreliable, explains how optimization errors, undefined‑behavior assumptions, and hardware‑specific code generation can introduce subtle bugs, presents real‑world examples from GCC, MSVC and Clang, and offers practical strategies to detect and avoid such compiler faults.

CMSVCUndefined Behavior
0 likes · 14 min read
Can You Trust Your Compiler? Discover Hidden Bugs and Protection Tips
Liangxu Linux
Liangxu Linux
Nov 4, 2023 · Information Security

How Integer Overflows Threaten C Programs and How to Detect Them Safely

This article explains the difference between unsigned and signed integer overflow in C, shows how overflow can lead to buffer overflows and security breaches, illustrates common pitfalls with code examples, discusses compiler optimizations that remove overflow checks, and provides reliable techniques for detecting and preventing integer overflow.

C programmingCompiler OptimizationUndefined Behavior
0 likes · 15 min read
How Integer Overflows Threaten C Programs and How to Detect Them Safely