Skip to content

Commit

Permalink
Increase maximum PDU length that is decoded
Browse files Browse the repository at this point in the history
Limit the maximum PDU length that is decoded to a size that is both
safe for the software as well as unrealistic in the DFZ.
  • Loading branch information
ties committed Apr 5, 2024
1 parent febec67 commit 0a5d5cd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/structs.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ type Logger interface {
}

const (
messageMaxSize = 2048
// arbitrary threshold. First power of two over 4*|asns in DFZ|
messageMaxSize = 1048576

PROTOCOL_VERSION_0 = 0
PROTOCOL_VERSION_1 = 1
Expand Down

0 comments on commit 0a5d5cd

Please sign in to comment.