Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tests/fuzzers: add nodestatemachine fuzzer (wip) #21970

Closed
wants to merge 6 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
�����I3fH4��J
�9n���䜀Tq%�D���3-~�T(ÔL��3���ĉ�V p2-�M@4��!��=��lQ@��pE���9iH�#�!g$���� �R߽c`��J �sy�<���q�a�(&�c[�|0�ߚ��J�E)�ftU"ߴ�?���d��qfn�d�m𾮊��ve�[� �*�|(�&��� �رS�&u*\���i_����"�6��=\����]������h~��G�Y��#
����� "��c�,��=��L���d��w��Qc<>'̥�ZԎVd=Hi�~��_�����z{��\��:D���p�2f����7Wy UO][����.P������R)"�y+�7u���J��_�稁�)�������&��698Y�D|��I=6�*��-�u:|޺�Ȱ2"T�Z�e�CI3��]�?)�*i���a^5��߃�
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Ԯ���F��=ҕF���tK��E�H���Q�@8�\6���il�+�~&V9��9���� �M 0'x�ܚ&� TYV�b\}JP� ��E�瘠�D���Mlr��2�FKCvXP��V��b8^|1C.4+c���ʽx��̭��և�HK��l��/@�Xy��� F����D����|�邂J���� �<�� EΌ�y���QF�H H������U�?�U���ꎌy��u���f����r=-��qA�V�H+B��[� ��|�7G^�r*�Mqm�#i�<Ӱvz�
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
41 changes: 41 additions & 0 deletions tests/fuzzers/nodestatemachine/debug/main.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
// Copyright 2020 The go-ethereum Authors
// This file is part of the go-ethereum library.
//
// The go-ethereum library is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// The go-ethereum library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.

package main

import (
"fmt"
"io/ioutil"
"os"

"github.com/ethereum/go-ethereum/tests/fuzzers/nodestatemachine"
)

func main() {
if len(os.Args) != 2 {
fmt.Fprintf(os.Stderr, "Usage: debug <file>\n")
fmt.Fprintf(os.Stderr, "Example\n")
fmt.Fprintf(os.Stderr, " $ debug ../crashers/4bbef6857c733a87ecf6fd8b9e7238f65eb9862a\n")
os.Exit(1)
}
crasher := os.Args[1]
data, err := ioutil.ReadFile(crasher)
if err != nil {
fmt.Fprintf(os.Stderr, "error loading crasher %v: %v", crasher, err)
os.Exit(1)
}
nodestatemachine.Fuzz(data)
}
Loading