O'Reilly logo

A Bug Hunter's Diary by Tobias Klein

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

1.3 Memory Errors

The vulnerabilities described in this book have one thing in common: They all lead to exploitable memory errors. Such memory errors occur when a process, a thread, or the kernel is

  • Using memory it does not own (e.g., NULL pointer dereferences, as described in Section A.2)

  • Using more memory than has been allocated (e.g., buffer overflows, as described in Section A.1)

  • Using uninitialized memory (e.g., uninitialized variables)[2]

  • Using faulty heap-memory management (e.g., double frees)[3]

Memory errors typically happen when powerful C/C++ features like explicit memory management or pointer arithmetic are used incorrectly.

A subcategory of memory errors, called memory corruption, happens when a process, a thread, or the kernel modifies ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required