neoneo-go/pkg/network
Roman Khimov 56b24bf83e capability: prevent panic on wrong capabilities receival
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x18 pc=0xad7b95]

goroutine 134 [running]:
github.com/nspcc-dev/neo-go/pkg/network/capability.(*Capability).DecodeBinary(0xc00024a300, 0xc00015c900)
        /home/rik/dev/neo-go/pkg/network/capability/capability.go:69 +0x85
github.com/nspcc-dev/neo-go/pkg/io.(*BinReader).ReadArray(0xc00015c900, 0xd54880, 0xc00018ecd8, 0xc00071fbe0, 0x1, 0x1)
        /home/rik/dev/neo-go/pkg/io/binaryReader.go:141 +0x22f
github.com/nspcc-dev/neo-go/pkg/network/capability.(*Capabilities).DecodeBinary(0xc00018ecd8, 0xc00015c900)
        /home/rik/dev/neo-go/pkg/network/capability/capability.go:17 +0x6d
github.com/nspcc-dev/neo-go/pkg/network/payload.(*AddressAndTime).DecodeBinary(0xc00018ecc0, 0xc00015c900)
        /home/rik/dev/neo-go/pkg/network/payload/address.go:34 +0x59
github.com/nspcc-dev/neo-go/pkg/io.(*BinReader).ReadArray(0xc00015c900, 0xcb9e00, 0xc00024a2a0, 0x0, 0x0, 0x0)
        /home/rik/dev/neo-go/pkg/io/binaryReader.go:141 +0x22f
github.com/nspcc-dev/neo-go/pkg/network/payload.(*AddressList).DecodeBinary(0xc00024a2a0, 0xc00015c900)
        /home/rik/dev/neo-go/pkg/network/payload/address.go:78 +0x54
github.com/nspcc-dev/neo-go/pkg/network.(*Message).decodePayload(0xc000277890, 0xc000292020, 0xc0003da000)
        /home/rik/dev/neo-go/pkg/network/message.go:158 +0x31a
github.com/nspcc-dev/neo-go/pkg/network.(*Message).Decode(0xc000277890, 0xc00071ff48, 0xc00036e090, 0xc000276e40)
        /home/rik/dev/neo-go/pkg/network/message.go:114 +0x19b
github.com/nspcc-dev/neo-go/pkg/network.(*TCPPeer).handleConn(0xc00036e090)
        /home/rik/dev/neo-go/pkg/network/tcp_peer.go:154 +0x244
created by github.com/nspcc-dev/neo-go/pkg/network.(*TCPTransport).Dial
        /home/rik/dev/neo-go/pkg/network/tcp_transport.go:40 +0x1ad
2020-05-29 00:11:54 +03:00
..
capability capability: prevent panic on wrong capabilities receival 2020-05-29 00:11:54 +03:00
metrics cli,pkg: use zap.Logger 2020-01-10 11:14:27 +03:00
payload Merge pull request #980 from nspcc-dev/neo3/protocol/version_payload_optimisation 2020-05-27 19:13:00 +03:00
blockqueue.go core: move Blockchainer interface to a separate package 2020-04-11 10:56:36 +03:00
blockqueue_test.go *: move all packages from CityOfZion to nspcc-dev 2020-03-03 17:21:42 +03:00
compress.go protocol: add payload compression 2020-05-26 22:19:10 +03:00
discovery.go protocol: add capabilities to address payload 2020-05-27 19:02:25 +03:00
discovery_test.go protocol: add capabilities to address payload 2020-05-27 19:02:25 +03:00
helper_test.go Merge pull request #980 from nspcc-dev/neo3/protocol/version_payload_optimisation 2020-05-27 19:13:00 +03:00
message.go protocol: add payload compression 2020-05-26 22:19:10 +03:00
message_string.go protocol: implement getblockdata p2p command 2020-05-22 19:16:49 +03:00
message_test.go network: remove outdated fields 2020-05-27 19:32:50 +03:00
peer.go protocol: add capabilities to version payload 2020-05-27 19:01:14 +03:00
prometheus.go monitoring: add prometheus monitoring 2019-10-29 20:51:17 +03:00
relay_reason.go fix spelling and godoc comments 2019-10-22 17:56:03 +03:00
server.go Merge pull request #980 from nspcc-dev/neo3/protocol/version_payload_optimisation 2020-05-27 19:13:00 +03:00
server_config.go config: move config.go out of config/ 2020-03-31 17:55:59 +03:00
server_test.go protocol: add capabilities to version payload 2020-05-27 19:01:14 +03:00
tcp_peer.go protocol: add capabilities to address payload 2020-05-27 19:02:25 +03:00
tcp_peer_test.go protocol: add capabilities to version payload 2020-05-27 19:01:14 +03:00
tcp_transport.go protocol: add capabilities to version payload 2020-05-27 19:01:14 +03:00
transport.go protocol: add capabilities to version payload 2020-05-27 19:01:14 +03:00