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 421d386 commit f15249d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server.go
Original file line number Diff line number Diff line change
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 f15249d

Please sign in to comment.