Off-by-One Error

Natural & Formal Sciences Dictionary
Definition
A logic error where an index, loop bound, or count includes or excludes an endpoint incorrectly, producing a one‑element discrepancy that can cause wrong results or out‑of‑range accesses.