diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2016-07-03 22:04:51 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2016-07-03 22:04:51 +0200 |
commit | 16408793ce3c51bdae2cc09a1d2bd05b80d231bb (patch) | |
tree | 7f1bdc2cf56d39008d4e741532f8a255db53bc14 /contrib/examples/ncat-client-server | |
parent | tools: always fallback to /dev/urandom (diff) | |
download | wireguard-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/examples/ncat-client-server')
0 files changed, 0 insertions, 0 deletions