Make sure the length of an unknown IP option is sensible.
authorflorian <florian@openbsd.org>
Thu, 1 Dec 2022 07:11:17 +0000 (07:11 +0000)
committerflorian <florian@openbsd.org>
Thu, 1 Dec 2022 07:11:17 +0000 (07:11 +0000)
commit1c5a93032832712afc56c1f378208c802f7b2558
tree2501d691d1d38e9569e69d08357c2d212c5bc0ae
parent8a0b2fe26aa8f692f9f27f548a603e2f1bc428d8
Make sure the length of an unknown IP option is sensible.

For example, an unknown option with length 0 would result in an
infinite loop.
bluhm points out that the network stack in the kernel would not let
such packets through to userland.
tweak & OK miod
OK bluhm
sbin/ping/ping.c