Obi-Wan Error

Noun · Development · Origin: 1990

Definitions

  1. A pun on 'off-by-one error', the classic mistake of iterating one element too many or too few, or of confusing an index with a count. The name puns on Obi-Wan Kenobi, giving 'OB1'. Off-by-one errors are endemic because the boundaries of a range can be expressed inclusively or exclusively and the two conventions are easy to mix, particularly around array bounds, loop terminators, and buffer lengths. The consequences range from a harmlessly missing final item to exploitable memory corruption, which is why the class has its own name in both humorous and security literature.