fail on large invs.
This commit is contained in:
parent
8e06d737a4
commit
c874b9f2af
@ -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(),
|
||||
|
||||
Loading…
Reference in New Issue
Block a user