Skip to content

Commit f15249d

Browse files
committed
Fix out of bounds access panic
Drop packet exceeding size of input buffer.
1 parent 421d386 commit f15249d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

server.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,7 @@ func (s *Server) readLoop(p net.PacketConn, allocationManager *allocation.Manage
186186
return
187187
case n >= s.inboundMTU:
188188
s.log.Debugf("Read bytes exceeded MTU, packet is possibly truncated")
189+
continue
189190
}
190191

191192
if err := server.HandleRequest(server.Request{

0 commit comments

Comments
 (0)