eth, les: add sanity checks for unbounded block fields (#19573)
This PR adds some hardening in the lower levels of the protocol stack, to bail early on invalid data. Primarily, attacks that this PR protects against are on the "annoyance"-level, which would otherwise write a couple of megabytes of data into the log output, which is a bit resource intensive.
Showing
- core/types/block.go 26 additions, 0 deletionscore/types/block.go
- eth/fetcher/fetcher.go 4 additions, 4 deletionseth/fetcher/fetcher.go
- eth/handler.go 3 additions, 0 deletionseth/handler.go
- eth/protocol.go 13 additions, 0 deletionseth/protocol.go
- les/handler.go 3 additions, 1 deletionles/handler.go
- les/protocol.go 8 additions, 0 deletionsles/protocol.go
Loading
Please register or sign in to comment