]> The Tcpdump Group git mirrors - tcpdump/commit
Babel: Add a missing length check.
authorDenis Ovsienko <[email protected]>
Tue, 12 Sep 2017 10:30:50 +0000 (11:30 +0100)
committerFrancois-Xavier Le Bail <[email protected]>
Mon, 28 Oct 2019 18:09:38 +0000 (19:09 +0100)
commit8d32220a44bfd218758f8e9ca615ab73eefa0ca8
tree733e4b1973319080bcd52633e02e4901ca4ccb1b
parent6d20b784a387cffc95a589da1cec1af07dbf1381
Babel: Add a missing length check.

In babel_print_v2() check that the Babel packet body length does not
exceed the outer UDP packet payload. This helps to detect some invalid
packets earlier but does not fix a known vulnerability.

Update the output of a test accordingly.

Cherry picked from 651020754a171b1f279c2c444a5b1e725d4dd781
in 4.9 branch.
print-babel.c
tests/babel_update_oobr.out