fail on large invs.

This commit is contained in:
Christopher Jeffrey 2016-04-04 00:23:45 -07:00
parent 8e06d737a4
commit c874b9f2af

View File

@ -455,6 +455,8 @@ Parser.parseInv = function parseInv(p) {
count = p.readVarint();
assert(count < 50000, 'Item count too high.');
for (i = 0; i < count; i++) {
items.push({
type: p.readU32(),