Fix buffer out of range crash

The wintun driver can provide larger packages
than the buffer size of the reader part.
This commit is contained in:
pzoli
2023-05-24 16:53:23 +02:00
committed by Zoltan Papp
parent 5c7986a94d
commit e851523ebd
+2 -2
View File
@@ -10,6 +10,6 @@ const (
QueueOutboundSize = 1024
QueueInboundSize = 1024
QueueHandshakeSize = 1024
MaxSegmentSize = 2048 - 32 // largest possible UDP datagram
PreallocatedBuffersPerPool = 0 // Disable and allow for infinite memory growth
MaxSegmentSize = 65535 // Match with WINTUN_MAX_IP_PACKET_SIZE macro definition
PreallocatedBuffersPerPool = 0 // Disable and allow for infinite memory growth
)