erigon-pulse/p2p
Felix Lange 82f1d29cf1 p2p/enode: avoid crashing for invalid IP (#21981)
The database panicked for invalid IPs. This is usually no problem
because all code paths leading to node DB access verify the IP, but it's
dangerous because improper validation can turn this panic into a DoS
vulnerability. The quick fix here is to just turn database accesses
using invalid IP into a noop. This isn't great, but I'm planning to
remove the node DB for discv5 long-term, so it should be fine to have
this quick fix for half a year.

Fixes #21849
2021-03-08 14:25:11 +01:00
..
discover p2p/discover: fix deadlock in discv5 message dispatch (#21858) 2021-03-08 12:43:11 +01:00
discv5 ChangeSets dupsort (#1342) 2020-11-16 12:08:28 +00:00
dnsdisc all: fix typos in comments (#21118) 2020-06-15 19:38:13 +03:00
enode p2p/enode: avoid crashing for invalid IP (#21981) 2021-03-08 14:25:11 +01:00
enr Apply Turbo-Geth modifications to go-ethereum codebase 2019-11-01 21:52:03 +01:00
nat all: simplify nested complexity and if blocks ending with a return statement (#21854) 2021-03-08 12:34:16 +01:00
netutil p2p/discover: implement v5.1 wire protocol (#21647) 2020-10-26 17:16:00 +01:00
rlpx post-rebase fixes 2020-10-06 14:12:09 +02:00
simulations all: simplify nested complexity and if blocks ending with a return statement (#21854) 2021-03-08 12:34:16 +01:00
dial_test.go p2p: new dial scheduler (#20592) 2020-02-27 17:21:20 +03:00
dial.go Stop dial scheduler asap (#1334) 2020-11-02 21:07:26 +00:00
message_test.go p2p: move rlpx into separate package (#21464) 2020-10-06 14:12:09 +02:00
message.go Apply Turbo-Geth modifications to go-ethereum codebase 2019-11-01 21:52:03 +01:00
metrics.go post-merge fixups 2020-02-27 17:22:25 +03:00
peer_error.go p2p: fix some golint warnings (#16577) 2018-05-08 13:08:43 +02:00
peer_test.go p2p: move rlpx into separate package (#21464) 2020-10-06 14:12:09 +02:00
peer.go eth, p2p: use truncated names (#21698) 2020-10-26 17:16:00 +01:00
protocol.go cmd/devp2p, p2p: dial using node iterator, discovery crawler (#20132) 2019-12-03 13:08:33 +01:00
server_test.go post-rebase fixes 2020-10-06 14:12:09 +02:00
server.go p2p: avoid spinning loop on out-of-handles (#21878) 2021-03-08 12:29:12 +01:00
transport_test.go post-rebase fixes 2020-10-06 14:12:09 +02:00
transport.go post-rebase fixes 2020-10-06 14:12:09 +02:00
util_test.go post-merge fixups 2020-02-27 17:22:25 +03:00
util.go post-merge fixups 2020-02-27 17:22:25 +03:00