summaryrefslogtreecommitdiffhomepage
path: root/src/messages.h
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
commit6bb01a673d1b8805580f4f1a5506319da136a279 (patch)
tree116aa288a95e4808fae8c5cb25e5f9114929fc1a /src/messages.h
parent79d5e05cc8116c6fb90da33db0b3b86ebe2e1f22 (diff)
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. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'src/messages.h')
0 files changed, 0 insertions, 0 deletions