nim-eth/tests
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 Remove obsolete EIP-6110-7002-7251 types, encoding, and checks (#752) 2024-10-22 14:00:06 +07:00
db Replace registerCustomScalarFunction with createCustomFunction (#649) 2023-11-21 14:39:24 +01:00
fuzzing remove remaining `int` holdouts in rlp (#737) 2024-09-30 18:32:36 +02:00
keyfile 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 clean up redundant code in eth/rlp/writer.nim (#755) 2024-11-06 11:46:22 +07: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
all_tests.nim Align core types with execution spec (#733) 2024-09-29 10:52:19 +02:00
nim.cfg Enable tests with also json sink and fix failures (#624) 2023-06-22 16:13:16 +00:00
stubloglevel.nim Default compile all tests and binaries with TRACE log level (#549) 2022-11-10 09:01:58 +01:00
test_async_utils.nim Add build_dcli target and add it to CI (#344) 2021-04-06 13:33:24 +02:00
test_bloom.nim CI: test with multiple Nim version (#429) 2021-12-11 19:12:55 +01:00