• Felix Lange's avatar
    p2p/enode: avoid crashing for invalid IP (#21981) · 817a3fb5
    Felix Lange authored
    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
    817a3fb5
Name
Last commit
Last update
..
idscheme.go Loading commit data...
idscheme_test.go Loading commit data...
iter.go Loading commit data...
iter_test.go Loading commit data...
localnode.go Loading commit data...
localnode_test.go Loading commit data...
node.go Loading commit data...
node_test.go Loading commit data...
nodedb.go Loading commit data...
nodedb_test.go Loading commit data...
urlv4.go Loading commit data...
urlv4_test.go Loading commit data...