nim-eth/eth
Kim De Mey aa92ad4f42
discv4: Fix assert on invalid RLP list in Neighbours message (#763)
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
2024-12-02 09:38:00 +01:00
..
common Add missing rlp imports to properple decode/encode blocks/bodies (#761) 2024-11-20 12:15:34 +01:00
db results: use standalone repo (#687) 2024-05-30 14:46:57 +02:00
keyfile Align core types with execution spec (#733) 2024-09-29 10:52:19 +02:00
net Align core types with execution spec (#733) 2024-09-29 10:52:19 +02:00
p2p discv4: Fix assert on invalid RLP list in Neighbours message (#763) 2024-12-02 09:38:00 +01:00
rlp Add missing rlp imports to properple decode/encode blocks/bodies (#761) 2024-11-20 12:15:34 +01:00
trie Ordered trie for computing roots (#744) 2024-10-08 20:02:58 +02:00
utp Align core types with execution spec (#733) 2024-09-29 10:52:19 +02:00
async_utils.nim better async timeout wait (#659) 2024-01-16 18:12:47 +01:00
bloom.nim Align core types with execution spec (#733) 2024-09-29 10:52:19 +02:00
common.nim Align core types with execution spec (#733) 2024-09-29 10:52:19 +02:00
eip1559.nim Add a helper for calculating the EIP1559 base fee 2022-08-18 23:36:45 +03:00
keyfile.nim Add build_dcli target and add it to CI (#344) 2021-04-06 13:33:24 +02:00
keys.nim Align core types with execution spec (#733) 2024-09-29 10:52:19 +02:00
p2p.nim devp2p: upgrade to v5 (EIP-706) (#760) 2024-11-08 03:44:04 +01:00
rlp.nim Add missing rlp imports to properple decode/encode blocks/bodies (#761) 2024-11-20 12:15:34 +01:00
trie.nim binary tries: remove (#684) 2024-05-26 09:57:59 +02:00