erigon-pulse/p2p/enode
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
..
idscheme_test.go Apply Turbo-Geth modifications to go-ethereum codebase 2019-11-01 21:52:03 +01:00
idscheme.go Apply Turbo-Geth modifications to go-ethereum codebase 2019-11-01 21:52:03 +01:00
iter_test.go Jump tables data race (#1245) 2020-10-20 22:23:56 +01:00
iter.go p2p/enode: remove data race in sliceIter (#20421) 2019-12-09 12:56:07 +01:00
localnode_test.go Apply Turbo-Geth modifications to go-ethereum codebase 2019-11-01 21:52:03 +01:00
localnode.go Apply Turbo-Geth modifications to go-ethereum codebase 2019-11-01 21:52:03 +01:00
node_test.go Apply Turbo-Geth modifications to go-ethereum codebase 2019-11-01 21:52:03 +01:00
node.go p2p/enode: remove unused code (#21612) 2020-10-26 17:16:00 +01:00
nodedb_test.go make lmdb default db (#675) 2020-06-18 19:13:58 +01:00
nodedb.go p2p/enode: avoid crashing for invalid IP (#21981) 2021-03-08 14:25:11 +01:00
urlv4_test.go p2p/enode: mock DNS resolver in URL parsing test (#20252) 2019-12-03 13:24:17 +01:00
urlv4.go p2p/enode: update code comment (#20972) 2020-05-20 15:26:22 +03:00