Appendix B. Index of Bugs by Type

As previously mentioned, bugs can appear multiple times in this list because the classification is somewhat fluid. Each bug is listed by title, with the language and number of the page on which it appears.

A.off-by-one. The program makes a calculation that is off by one.
LanguageTitlePage Number
CMemory Free60
CKanji Backspace71
PythonAlphabetize Words90
PythonPrint the Month and Day95
JavaConvert a Number to Text133
PerlSort a File by Line Length179
X86 AssemblyCheck if Two Words Are Anagrams238
X86 AssemblyRadix Exchange Sort260
A.logic. The algorithm has a logical flaw.
LanguageTitlePage Number
CSelection Sort41
CMemory Copy50
CMemory Allocator56
PythonParse Numbers Written in English110
PythonAssign Gift Givers113
Java ...

Get Find the Bug A Book of Incorrect Programs now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.