Dr Dobbs' Journal has an interesting article, Integral Security, talking about some common errors with the humble integer that can make your program fail.