buffer overflow

buffer overflow happens when operations like stcpy runs beyond the edge of the allocated buffer. We need to find and fix buffer overflows, which causes people who use o

buffer overflow horror stories

  • AOL messanger

identifying buffer overflows

Think about whether or not what you are going to do will cause buffer overflows. There are stuff which you shouldn’t do:

  • strcpy: which keeps copying
  • strcat:
  • gets: it keeps taking input forever and forever

https://www.acm.org/code-of-ethics “Design and implement systems that are robustly and usably secure.”

valgrind

valgrind is a good tool to check whether or not something will buffer overflow.