Buffer Overflow Causes. ©2002, Jedidiah R. Crandall, Susan L. Gerhart, Jan G. Hogle.  http://sfsecurity.pr.erau.edu
Off-by-one errors - Consequences.
Usually off-by-one errors can do no more than crash the program.  They can be made to compromise security-sensitive data.  But any buffer overflow is a security risk.