nim-eth/tests/rlp
Jordan Hrycaj 98b2a34075
Fix rlpx hello crash caused by rlp decoder (#721)
* Restricting exception catcher

why:
  `CatchableError` is not needed here

* Check data length before converting to `openArray[]`

why:
  Getting the first entry of an `openArray[]` crashes with `IndexDefect`.
  This is particularly annoying when decoding messages in rlpx.

* Added unit test using rlpx message that causes this problem to detect
2024-08-19 11:38:46 +00:00
..
cases Fix two bugs in Receipts RLP encoding/decoding (#672) 2024-02-05 23:22:15 +01:00
util rlp: refresh code (#683) 2024-05-26 09:58:24 +02:00
all_tests.nim Fix rlpx hello crash caused by rlp decoder (#721) 2024-08-19 11:38:46 +00:00
test_api_usage.nim rlp: refresh code (#683) 2024-05-26 09:58:24 +02:00
test_empty_string.nim Fix rlpx hello crash caused by rlp decoder (#721) 2024-08-19 11:38:46 +00:00
test_json_suite.nim Add build_dcli target and add it to CI (#344) 2021-04-06 13:33:24 +02:00
test_object_serialization.nim Refactor p2pProtocol internals (#657) 2024-01-22 16:47:46 +07:00