Add simple rlp fuzz test

This commit is contained in:
kdeme 2019-09-26 18:27:23 +02:00 committed by zah
parent c0a067178b
commit d337435aa1
1 changed files with 12 additions and 0 deletions

View File

@ -0,0 +1,12 @@
import chronicles, eth/rlp, ../fuzz_helpers
# TODO: have a default init as such
init:
discard
test:
try:
var rlp = rlpFromBytes(payload.toRange)
discard rlp.inspect()
except RlpError:
debug "Inspect failed", err = getCurrentExceptionMsg()