bitcoin/bitcoin — pull request #3768 by laanwj (2014-02-28 09:48:35+00:00)
Title: Total money limit test

#3707 with added intermediate overflow check by @il--ya.