mirror of https://github.com/status-im/nim-eth.git
aa92ad4f42
The assert would occur when the rlp size of the a node in the nodes rlp list is incorrectly set too high and then the next `listElem` call for the next node will start from the incorrect data. When that data is not a list the assert in `listElem` will be triggered. Fixed by adding a `listLen` call which checks if it is a list. Added also more strictness by: - Checking if that list is of len 4, which it must be - raising immediatly on invalid IP length - raising immediatly on invalid public key / node id + test cases |
||
---|---|---|
.. | ||
common | ||
db | ||
keyfile | ||
net | ||
p2p | ||
rlp | ||
trie | ||
utp | ||
async_utils.nim | ||
bloom.nim | ||
common.nim | ||
eip1559.nim | ||
keyfile.nim | ||
keys.nim | ||
p2p.nim | ||
rlp.nim | ||
trie.nim |