Defensive Application Design: Preventing Buffer Overflows and Memory Leaks in C/C++ for Linux
Secure Coding Standards

EPUB · English
Price and availability
EPUB eBookUS store
$8.99
Sign in to buyYou’ll review your order and final price before payment.
Download from your library after delivery. Protected eBooks need a compatible reading app.
For personal use under the eBook licence.
Territorial availability
Available in: Andorra, Austria, Australia, Belgium, Bulgaria, Canada, Switzerland, Cyprus, Czechia, Germany, Denmark, Estonia, Spain, Finland, France, United Kingdom, Guernsey, Greece, Croatia, Hungary, Ireland, Isle of Man, Iceland, Italy, Jersey, Japan, Liechtenstein, Lithuania, Luxembourg, Latvia, Monaco, Malta, Netherlands, Norway, Poland, Portugal, Romania, Sweden, Slovenia, Slovakia, San Marino, United States, Vatican City, South Africa
Publisher rights cover these stores: US, UK, Canada, EU, Australia. Checkout availability is shown above.
- Format
- EPUB
- DRM
- Not stated by the publisher
- Language
- English
- Publisher
- Distributed via Draft2Digital
- Published
- 12 March 2026
- ISBN
- 9798233493140
- Subjects
- Linux, Programming & scripting languages: general, Computer security, ULJL, Programming and scripting languages: general, Computer security
About this book
Memory corruption is the root cause of the most severe security breaches in computing history. Buffer overflows, use-after-free conditions, and memory leaks continue to compromise critical infrastructure, embedded systems, and cloud platforms. Yet C and C++ remain irreplaceable at the heart of modern operating systems, networking stacks, and high-performance applications.This book equips intermediate C and C++ developers with a complete, actionable framework for building secure, production-grade software on Linux. Written for systems programmers who already understand basic C syntax, it bridges the gap between writing functional code and building resilient, secure infrastructure.Inside, you will learn:How Linux organizes virtual memory, stack frames, heap regions, and ELF binary sectionsThe precise mechanics of buffer overflows, use-after-free vulnerabilities, integer bugs, and memory leaksHow to eliminate unsafe standard library functions and replace them with bounded, production-safe alternativesDefensive design patterns including the single-exit cleanup pattern, arena allocators, and centralized resource managementHow to harden builds with GCC and Clang flags, including stack canaries, RELRO, and Position Independent ExecutablesHow Linux enforces Address Space Layout Randomization, Data Execution Prevention, and Control-Flow IntegrityHow to use AddressSanitizer, Valgrind, and Cppcheck to catch leaks and overflows before deploymentHow to integrate fuzz testing and static analysis into CI/CD pipelines for continuous security verificationHow to apply the principle of least privilege and sandbox untrusted components to contain breachesWhether you maintain a legacy codebase, build high-performance network services, or develop embedded systems, this book provides the deep technical grounding and engineering discipline to write software that withstands adversarial conditions.Stop fixing bugs after breaches. Build systems that prevent them by design.
Bibliographic data © Gardners Books Ltd.