Skip to content

Commit

Permalink
fix rlp fuzzer issue
Browse files Browse the repository at this point in the history
  • Loading branch information
mandrigin committed Mar 17, 2021
1 parent d4a71a8 commit 93babfc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
Empty file modified oss-fuzz.sh
100644 → 100755
Empty file.
13 changes: 6 additions & 7 deletions tests/fuzzers/rlp/rlp_fuzzer.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,16 +43,15 @@ func Fuzz(input []byte) int {

var i int
{
if _, _, _, err := rlp.Split(input); err != nil {
panic(err)
}
if _, _, _, err := rlp.Split(input); err != nil {
panic(err)
}
}

{
if elems, _, err := rlp.SplitList(input); err == nil {
if _, err = rlp.CountValues(elems); err != nil {
panic(err)
}
if elems, _, err := rlp.SplitList(input); err == nil {
if _, err = rlp.CountValues(elems); err != nil {
panic(err)
}
}
}
Expand Down

0 comments on commit 93babfc

Please sign in to comment.