nim-eth/eth/p2p
Kim De Mey 522db295f2
Fix RLP deserialzation for Enum with holes (#554)
RLP Enum deserialization would currently not check if "hole values"
were attempted to be converted to the enum type. Now use
checkedEnumAssign and fail with RlpTypeMismatch on invalid values.

There is at least one occurance of an enum with holes in rlpx p2p:
DisconnectionReason. For this enum the issue could occur.

Also:
- Added enum RLP tests and rlpx p2p disconnect message tests to
test the DisconnectionReason with enum hole value.
- Fixed worse custom DisconnectionReason decoding occurance
in rlpx in waitSingleMsg proc where this issue could occur.
2022-11-14 15:49:37 +01:00
..
discoveryv5 Tackle some Nim warnings new since Nim 1.4 & 1.6 (#553) 2022-11-10 16:32:57 +01:00
private Fix RLP deserialzation for Enum with holes (#554) 2022-11-14 15:49:37 +01:00
auth.nim fix nim-devel compilation error in auth.nim 2022-09-07 11:49:00 +07:00
bootnodes.nim Clean-up bootnodes.nim (#518) 2022-07-08 20:32:41 +02:00
discovery.nim Revert #544 "Fix related to nim devel branch" (#551) 2022-11-09 18:57:04 +01:00
ecies.nim bearssl: use split api (#510) 2022-06-17 22:45:37 +02:00
enode.nim Add build_dcli target and add it to CI (#344) 2021-04-06 13:33:24 +02:00
kademlia.nim Tackle some Nim warnings new since Nim 1.4 & 1.6 (#553) 2022-11-10 16:32:57 +01:00
p2p_backends_helpers.nim Revert #544 "Fix related to nim devel branch" (#551) 2022-11-09 18:57:04 +01:00
p2p_protocol_dsl.nim Revert #544 "Fix related to nim devel branch" (#551) 2022-11-09 18:57:04 +01:00
p2p_tracing.nim Add build_dcli target and add it to CI (#344) 2021-04-06 13:33:24 +02:00
p2p_tracing_ctail_plugin.nim Moved eth-p2p to eth 2019-02-05 17:40:29 +02:00
peer_pool.nim Tackle some Nim warnings new since Nim 1.4 & 1.6 (#553) 2022-11-10 16:32:57 +01:00
rlpx.nim Fix RLP deserialzation for Enum with holes (#554) 2022-11-14 15:49:37 +01:00
rlpxcrypt.nim Tackle some Nim warnings new since Nim 1.4 & 1.6 (#553) 2022-11-10 16:32:57 +01:00