aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/contrib/client-server-example/server.sh
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2016-07-03 22:04:51 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2016-07-03 22:04:51 +0200
commit16408793ce3c51bdae2cc09a1d2bd05b80d231bb (patch)
tree7f1bdc2cf56d39008d4e741532f8a255db53bc14 /contrib/client-server-example/server.sh
parenttools: always fallback to /dev/urandom (diff)
downloadwireguard-monolithic-historical-16408793ce3c51bdae2cc09a1d2bd05b80d231bb.tar.xz
wireguard-monolithic-historical-16408793ce3c51bdae2cc09a1d2bd05b80d231bb.zip
receive: protect against impossible conditions
It should never be the case that skb->head + skb->transport_header - skb->data is greater than 2^16, but in case the kernel network stack borks this at some point in the future, we don't want this to slyly introduce a vulnerability into WireGuard. Further, really smart compilers might be able to make deductions about data_offset, and optimize accordingly.
Diffstat (limited to 'contrib/client-server-example/server.sh')
0 files changed, 0 insertions, 0 deletions