1
0
mirror of https://git.zx2c4.com/wireguard-go synced 2024-11-15 01:05:15 +01:00
wireguard-go/tun
Jordan Whited 1cf89f5339 tun: fix Device.Read() buf length assumption on Windows
The length of a packet read from the underlying TUN device may exceed
the length of a supplied buffer when MTU exceeds device.MaxMessageSize.

Reviewed-by: Brad Fitzpatrick <bradfitz@tailscale.com>
Signed-off-by: Jordan Whited <jordan@tailscale.com>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2023-12-11 16:20:49 +01:00
..
netstack go.mod,tun/netstack: bump gvisor 2023-10-10 15:37:17 +02:00
testdata/fuzz/Fuzz_handleGRO conn, device, tun: implement vectorized I/O on Linux 2023-03-10 14:52:17 +01:00
tuntest conn, device, tun: implement vectorized I/O plumbing 2023-03-10 14:52:13 +01:00
alignment_windows_test.go global: bump copyright year 2023-02-07 20:39:29 -03:00
checksum_test.go tun: unwind summing loop in checksumNoFold() 2023-10-10 15:07:36 +02:00
checksum.go tun: unwind summing loop in checksumNoFold() 2023-10-10 15:07:36 +02:00
errors.go tun: replace ErrorBatch() with errors.Join() 2023-03-17 15:18:04 +01:00
operateonfd.go global: bump copyright year 2023-02-07 20:39:29 -03:00
tcp_offload_linux_test.go go.mod,tun/netstack: bump gvisor 2023-10-10 15:37:17 +02:00
tcp_offload_linux.go tun: reduce redundant checksumming in tcpGRO() 2023-10-10 15:07:36 +02:00
tun_darwin.go global: buff -> buf 2023-03-13 17:55:53 +01:00
tun_freebsd.go global: buff -> buf 2023-03-13 17:55:53 +01:00
tun_linux.go tun: replace ErrorBatch() with errors.Join() 2023-03-17 15:18:04 +01:00
tun_openbsd.go global: buff -> buf 2023-03-13 17:55:53 +01:00
tun_windows.go tun: fix Device.Read() buf length assumption on Windows 2023-12-11 16:20:49 +01:00
tun.go global: buff -> buf 2023-03-13 17:55:53 +01:00