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 | ||
fuzzing | ||
keyfile | ||
p2p | ||
rlp | ||
trie | ||
utp | ||
all_tests.nim | ||
nim.cfg | ||
stubloglevel.nim | ||
test_async_utils.nim | ||
test_bloom.nim |