Prevent integer overflow in ReadVarInt.
commit45f09618f22f0a59d872818f28fc2a938cc98311
authorGregory Maxwell <greg@xiph.org>
Mon, 6 Feb 2017 02:52:27 +0000 (6 02:52 +0000)
committerGregory Maxwell <greg@xiph.org>
Mon, 6 Feb 2017 02:52:27 +0000 (6 02:52 +0000)
treefd1f094b1d3476bd1908413f5c94d96f33f1d349
parent923dc447eaa8e017985b2afbbb12dd1283fbea0e
Prevent integer overflow in ReadVarInt.

We don't normally use ReadVarInt from untrusted inputs, but we might
 see this in the case of corruption.

This is exposed in test_bitcoin_fuzzy.
src/serialize.h