diff options
author | Kevin Krakauer <krakauer@google.com> | 2019-11-25 08:35:09 -0800 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2019-11-25 09:11:05 -0800 |
commit | 2b1b51f1d7dd96f14b0af3b2663c33bc7ab67f63 (patch) | |
tree | 90cce55e1f024d32c5dc4a028c436657a4fd6245 /pkg/sentry/loader/vdso_state.go | |
parent | c3b93afeafeff4555b57aa22c2a91375f9e38e28 (diff) |
Fix panic in sniffer.
Packets written via SOCK_RAW are guaranteed to have network headers, but not
transport headers. Check first whether there are enough bytes left in the packet
to contain a transport header before attempting to parse it.
PiperOrigin-RevId: 282363895
Diffstat (limited to 'pkg/sentry/loader/vdso_state.go')
0 files changed, 0 insertions, 0 deletions