bitcoin/bitcoin — pull request #2935 by sipa (2013-08-24 21:26:17+00:00)
Title: Fix out-of-bounds check

Fixes #2924.