Skip to content

Commit

Permalink
Fix out of bounds access panic
Browse files Browse the repository at this point in the history
Drop packet exceeding size of input buffer.
  • Loading branch information
boks1971 committed Sep 18, 2023
1 parent 89a9f73 commit d87d0f3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server.go
Expand Up @@ -186,6 +186,7 @@ func (s *Server) readLoop(p net.PacketConn, allocationManager *allocation.Manage
return
case n >= s.inboundMTU:
s.log.Debugf("Read bytes exceeded MTU, packet is possibly truncated")
continue
}

if err := server.HandleRequest(server.Request{
Expand Down

0 comments on commit d87d0f3

Please sign in to comment.