forked from cosmos/cosmos-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fuzz: add x/bank/types.AddressFromBalancesStore (cosmos#9060)
- Loading branch information
1 parent
a9b9a5d
commit a3cf1a9
Showing
9 changed files
with
73 additions
and
0 deletions.
There are no files selected for viewing
Binary file added
BIN
+33.9 MB
fuzz/x/bank/types/AddressFromBalancesStore/addressfrombalancesstore-fuzz.zip
Binary file not shown.
1 change: 1 addition & 0 deletions
1
fuzz/x/bank/types/AddressFromBalancesStore/corpus/067d5096f219c64b53bb1c7d5e3754285b565a47-1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
|
Binary file added
BIN
+1 Byte
fuzz/x/bank/types/AddressFromBalancesStore/corpus/5ba93c9db0cff93f52b521d7420e43f6eda2784f-1
Binary file not shown.
Empty file.
1 change: 1 addition & 0 deletions
1
fuzz/x/bank/types/AddressFromBalancesStore/crashers/474f771dd66fe3722a4090b72f6777cf7f1ec156
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
�000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 |
40 changes: 40 additions & 0 deletions
40
...k/types/AddressFromBalancesStore/crashers/474f771dd66fe3722a4090b72f6777cf7f1ec156.output
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
panic: runtime error: slice bounds out of range [1:0] | ||
|
||
goroutine 1 [running]: | ||
github.com/cosmos/cosmos-sdk/x/bank/types.AddressFromBalancesStore(0x7fef1f41f000, 0x100, 0x100, 0xc000d2fea0, 0x494e86, 0x6076d01a, 0x11b93f71, 0xf0b0a49ccf9d) | ||
/home/cuonglm/go/src/github.com/orijtech/cosmos-sdk/x/bank/types/key.go:50 +0x1af | ||
github.com/cosmos/cosmos-sdk/fuzz/x/bank/types/AddressFromBalancesStore.Fuzz(0x7fef1f41f000, 0x100, 0x100, 0x4) | ||
/home/cuonglm/go/src/github.com/orijtech/cosmos-sdk/fuzz/x/bank/types/AddressFromBalancesStore/fuzz.go:8 +0x5b | ||
go-fuzz-dep.Main(0xc000d2ff70, 0x1, 0x1) | ||
go-fuzz-dep/main.go:36 +0x1b8 | ||
main.main() | ||
github.com/cosmos/cosmos-sdk/fuzz/x/bank/types/AddressFromBalancesStore/go.fuzz.main/main.go:15 +0x52 | ||
|
||
goroutine 50 [IO wait]: | ||
internal/poll.runtime_pollWait(0x7fef260ae058, 0x72, 0x1000) | ||
runtime/netpoll.go:222 +0x55 | ||
internal/poll.(*pollDesc).wait(0xc000626118, 0x72, 0x0, 0x10, 0xc000d68020) | ||
/home/cuonglm/sources/go/src/internal/poll/fd_poll_runtime.go:87 +0xe5 | ||
internal/poll.(*pollDesc).waitRead(...) | ||
/home/cuonglm/sources/go/src/internal/poll/fd_poll_runtime.go:92 | ||
internal/poll.(*FD).ReadMsg(0xc000626100, 0xc00011d8f0, 0x10, 0x10, 0xc000d68020, 0x1000, 0x1000, 0x0, 0x0, 0x0, ...) | ||
/home/cuonglm/sources/go/src/internal/poll/fd_unix.go:249 +0x3c6 | ||
net.(*netFD).readMsg(0xc000626100, 0xc00011d8f0, 0x10, 0x10, 0xc000d68020, 0x1000, 0x1000, 0x12f3e10, 0xc000d73e08, 0xe96645, ...) | ||
/home/cuonglm/sources/go/src/net/fd_posix.go:67 +0xa6 | ||
net.(*UnixConn).readMsg(0xc00060e320, 0xc00011d8f0, 0x10, 0x10, 0xc000d68020, 0x1000, 0x1000, 0xc00011d8c4, 0xc00011d77c, 0xc00011d77e, ...) | ||
/home/cuonglm/sources/go/src/net/unixsock_posix.go:115 +0xa9 | ||
net.(*UnixConn).ReadMsgUnix(0xc00060e320, 0xc00011d8f0, 0x10, 0x10, 0xc000d68020, 0x1000, 0x1000, 0x40f6bb, 0xc000116b40, 0x18, ...) | ||
/home/cuonglm/sources/go/src/net/unixsock.go:143 +0xf5 | ||
github.com/godbus/dbus.(*oobReader).Read(0xc000d68000, 0xc00011d8f0, 0x10, 0x10, 0x18, 0x1035e00, 0xc00062d301) | ||
/home/cuonglm/go/pkg/mod/github.com/godbus/dbus@v0.0.0-20190726142602-4481cbc300e2/transport_unix.go:21 +0xa5 | ||
io.ReadAtLeast(0x13a3f40, 0xc000d68000, 0xc00011d8f0, 0x10, 0x10, 0x10, 0xc, 0x0, 0x0) | ||
/home/cuonglm/sources/go/src/io/io.go:328 +0xd4 | ||
io.ReadFull(...) | ||
/home/cuonglm/sources/go/src/io/io.go:347 | ||
github.com/godbus/dbus.(*unixTransport).ReadMessage(0xc000116360, 0xc0005ce6f0, 0x12f3cd8, 0xc00059b270) | ||
/home/cuonglm/go/pkg/mod/github.com/godbus/dbus@v0.0.0-20190726142602-4481cbc300e2/transport_unix.go:91 +0x17f | ||
github.com/godbus/dbus.(*Conn).inWorker(0xc0005ea750) | ||
/home/cuonglm/go/pkg/mod/github.com/godbus/dbus@v0.0.0-20190726142602-4481cbc300e2/conn.go:294 +0x70 | ||
created by github.com/godbus/dbus.(*Conn).Auth | ||
/home/cuonglm/go/pkg/mod/github.com/godbus/dbus@v0.0.0-20190726142602-4481cbc300e2/auth.go:118 +0x9de | ||
exit status 2 |
13 changes: 13 additions & 0 deletions
13
...k/types/AddressFromBalancesStore/crashers/474f771dd66fe3722a4090b72f6777cf7f1ec156.quoted
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
"\xff0000000000000000000" + | ||
"00000000000000000000" + | ||
"00000000000000000000" + | ||
"00000000000000000000" + | ||
"00000000000000000000" + | ||
"00000000000000000000" + | ||
"00000000000000000000" + | ||
"00000000000000000000" + | ||
"00000000000000000000" + | ||
"00000000000000000000" + | ||
"00000000000000000000" + | ||
"00000000000000000000" + | ||
"0000000000000000" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package addressfrombalancesstore | ||
|
||
import ( | ||
"github.com/cosmos/cosmos-sdk/x/bank/types" | ||
) | ||
|
||
func Fuzz(data []byte) int { | ||
_, err := types.AddressFromBalancesStore(data) | ||
if err != nil { | ||
return 1 | ||
} | ||
return 0 | ||
} |
5 changes: 5 additions & 0 deletions
5
...bank/types/AddressFromBalancesStore/suppressions/7e87db65c1435371117962bee9def590a13c97f7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
panic: runtime error: slice bounds out of range [1:0] | ||
github.com/cosmos/cosmos-sdk/x/bank/types.AddressFromBalancesStore | ||
github.com/cosmos/cosmos-sdk/fuzz/x/bank/types/AddressFromBalancesStore.Fuzz | ||
go-fuzz-dep.Main | ||
main.main |