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 |
||
---|---|---|
.. | ||
discoveryv5 | ||
private | ||
auth.nim | ||
bootnodes.nim | ||
discovery.nim | ||
ecies.nim | ||
enode.nim | ||
kademlia.nim | ||
p2p_backends_helpers.nim | ||
p2p_protocol_dsl.nim | ||
p2p_tracing.nim | ||
p2p_tracing_ctail_plugin.nim | ||
peer_pool.nim | ||
rlpx.nim | ||
rlpxcrypt.nim | ||
rlpxtransport.nim |