Out-of-bounds memory accesses

This class is again among the more commonbut deadly!memory-access bugs. They can be classified as different kinds of bugs:

  • Write overflow: A bug where a write is attempted into a memory buffer after its last legally accessible location
  • Write underflow: A write is attempted into a memory buffer before its first legally accessible location
  • Read underflow: A read is attempted on a memory buffer before its first legally accessible location
  • Read overflow: A read is attempted on a memory buffer after its first legally accessible location

Let's check these out via the source code of our membugs.c program.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset