From d87d0f3f81e0ea04a13455a193ceca4ad1fb060c Mon Sep 17 00:00:00 2001 From: boks1971 Date: Mon, 18 Sep 2023 11:10:07 +0530 Subject: [PATCH] Fix out of bounds access panic Drop packet exceeding size of input buffer. --- server.go | 1 + 1 file changed, 1 insertion(+) diff --git a/server.go b/server.go index 5727395b..5180d20d 100644 --- a/server.go +++ b/server.go @@ -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{