]> git.ipfire.org Git - thirdparty/wireguard-go.git/commit
conn: windows: do not error out when receiving UDP jumbogram
authorJason A. Donenfeld <Jason@zx2c4.com>
Tue, 27 Apr 2021 02:07:03 +0000 (22:07 -0400)
committerJason A. Donenfeld <Jason@zx2c4.com>
Tue, 27 Apr 2021 02:07:03 +0000 (22:07 -0400)
commit8246d251ea9b9cbef07082bd69280a8f988cec0c
treeae8c85de45efcf73eca721b1af9169b1d3874cf5
parentc9db4b7aaa22b29f1c7c05ee8e3125ec2cab6965
conn: windows: do not error out when receiving UDP jumbogram

If we receive a large UDP packet, don't return an error to receive.go,
which then terminates the receive loop. Instead, simply retry.

Considering Winsock's general finickiness, we might consider other
places where an attacker on the wire can generate error conditions like
this.

Reported-by: Sascha Dierberg <sascha.dierberg@gmail.com>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
conn/bind_windows.go