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 |
||
---|---|---|
.. | ||
all_discv5_tests.nim | ||
all_tests.nim | ||
config.nims | ||
discv5_test_helper.nim | ||
eth_protocol.nim | ||
p2p_test_helper.nim | ||
test_auth.nim | ||
test_crypt.nim | ||
test_discovery.nim | ||
test_discoveryv5.nim | ||
test_discoveryv5_encoding.nim | ||
test_ecies.nim | ||
test_enode.nim | ||
test_enr.nim | ||
test_hkdf.nim | ||
test_ip_vote.nim | ||
test_protocol_handlers.nim | ||
test_rlpx_thunk.json | ||
test_rlpx_thunk.nim | ||
test_rlpxtransport.nim | ||
test_routing_table.nim |