Non-FictionAnnual CheckupSecure Coding

Memory Safety Language Adoption

Review Rust, Go, and other language use to prevent

by Isaac Jin

  • English
  • 117 pages
  • 2026
  • SamEnrico

Review Rust, Go, and other language use to prevent buffer overflows.

Formats

About this book

Review Rust, Go, and other language use to prevent buffer overflows.

Free sample

Chapter 1: The 70% Problem...--–- In March 2022, Microsoft released a security update for Windows that patched over 120 vulnerabilities. Among them was CVE-2022-21990, a remote code execution bug in the Remote Desktop Protocol that carried a CVSS score of 8.1—classified as "Important." The root cause? A classic buffer overflow in a C++ component that had been in production for over a decade. What made this particular vulnerability notable was not its technical complexity but its banality. It was the 847th memory corruption vulnerability Microsoft had patched in the preceding 24 months.

By the end of that same year, the company would publish a startling analysis: across all severe vulnerabilities in their products between 2006 and 2018, approximately 70 percent were caused by memory unsafety. For the Chromium project, the number was nearly identical—70 percent of high-severity bugs traced back to memory corruption. For Mozilla, the figure hovered around 74 percent. Three independent organizations, three distinct codebases, three decades of collective engineering, and the same conclusion: the single largest class of security vulnerabilities in modern software is not cryptographic flaws, not injection attacks, not authentication bypasses, but the simple, predictable, and preventable failure to manage memory correctly.This chapter answers a deceptively simple question: Why, after more than thirty years of research into memory safety, do buffer overflows and use-after-free errors remain the dominant cause of security failures in production systems? The answer is not a lack of solutions—those have existed since the 1980s.

The answer lies in the economics of legacy code, the seductive efficiency of unsafe languages, and the uncomfortable truth that the industry has spent decades treating symptoms rather than curing the disease.The Anatomy of a Catastrophe To understand the scale of the problem, one must first understand the mechanism. A buffer overflow occurs when a program writes data beyond the boundaries of an allocated block of memory. In C and C++, the languages responsible for the vast majority of operating systems, browsers, database engines, and embedded systems, the compiler trusts the programmer implicitly. There is no automatic bounds checking. When a developer writes char buffer[64] and then calls strcpy(buffer, user_input), the…

This is the end of the free sample. Get the eBook to keep going. Buy now

Read a sample →

Contents

  1. Chapter 1
  2. Chapter 2
  3. Chapter 3
  4. Chapter 4
  5. Chapter 5
  6. Chapter 6
  7. Chapter 7
  8. Chapter 8
  9. Chapter 9
  10. Chapter 10
  11. Chapter 11
  12. Chapter 12

Details

Author
Isaac Jin
Publisher
SamEnrico
Language
English
Genre
Non-Fiction, Annual Checkup, Secure Coding
Released
2026-06-11
Pages (approx.)
117
Available as
eBook, Audiobook

Read better in the ZLOADR app

Your eBooks on your phone or tablet. Sign in with your SamEnrico account and start reading.

More by Isaac Jin

See all

You may also like

See all