You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ npm i @chainsafe/lodestar-types
$ node crash_TypeError_block_lodestar.js
XXX/lodestar/node_modules/@chainsafe/ssz/lib/types/basic/uint.js:176
output += BigInt(data[offset + i]) <<BigInt(8 * i); ^TypeError: Cannot convert undefined to a BigInt at BigInt (<anonymous>) at BigIntUintType.fromBytes (XXX/lodestar/node_modules/@chainsafe/ssz/lib/types/basic/uint.js:176:17) at XXX/lodestar/node_modules/@chainsafe/ssz/lib/backings/structural/container.js:133:40 at Array.forEach (<anonymous>) at ContainerStructuralHandler.fromBytes (XXX/lodestar/node_modules/@chainsafe/ssz/lib/backings/structural/container.js:112:39) at XXX/lodestar/node_modules/@chainsafe/ssz/lib/backings/structural/container.js:135:51 at Array.forEach (<anonymous>) at ContainerStructuralHandler.fromBytes (XXX/lodestar/node_modules/@chainsafe/ssz/lib/backings/structural/container.js:112:39) at XXX/lodestar/node_modules/@chainsafe/ssz/lib/backings/structural/array.js:209:54 at Function.from (<anonymous>)
Desktop (please complete the following information):
$ zcli pretty block crash.bin
cannot load input
cannot decode ssz: cannot create scoped decoding reader, scope of 4292673536 bytes is bigger than parent scope has available space 0
Describe the bug
During fuzzing with beaconfuzz, I found this TypeError crash inside ssz library when trying to deserialize a beaconblock.
Expected behavior
Should throw a custom Error.
Steps to Reproduce
crash_TypeError_block_lodestar.js:
Run:
Desktop (please complete the following information):
Ubuntu 18.04
0.8.0
v12.9.1
The text was updated successfully, but these errors were encountered: