From: Chris Branch Date: Thu, 20 Sep 2018 12:28:53 +0000 (+0100) Subject: Fix transport message length check X-Git-Tag: 0.0.20181001~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7c971d7ef458d47908940396149bf56e6335fb04;p=thirdparty%2Fwireguard-go.git Fix transport message length check wireguard-go has a bad length check in its transport message handling. Although it cannot be exploited because of another length check earlier in the function, this should be fixed regardless. --- diff --git a/receive.go b/receive.go index 01151ca..abe4e57 100644 --- a/receive.go +++ b/receive.go @@ -147,7 +147,7 @@ func (device *Device) RoutineReceiveIncoming(IP int, bind Bind) { // check size - if len(packet) < MessageTransportType { + if len(packet) < MessageTransportSize { continue }