


In the above example, ‘buff’ represents an array of 10 bytes where buff is the left boundary and buff is the right boundary of the buffer. What is Buffer Overflow?Ī buffer, in terms of a program in execution, can be thought of as a region of computer’s main memory that has certain boundaries in context with the program variable that references this memory. We’ll also use C programming language to explain the buffer overflow concept. We’ll keep the explanation and examples simple enough for you to understand the concept completely. How a buffer overflow attack takes place?.In this buffer overflow tutorial, we will discuss the basics of the following : The least we can do is to avoid writing bad code that gives a chance to even script kiddies to attack your program and exploit it. The reason I said ‘partly’ because sometimes a well written code can be exploited with buffer overflow attacks, as it also depends upon the dedication and intelligence level of the attacker. It still exists today partly because of programmers carelessness while writing a code. Buffer overflow attacks have been there for a long time.
