X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/12f66f69f7bf1ec1266ddbee90a7616cbf33696b..e01c9bf76740802025c9328901b55ee4a0c49ed6:/print-babel.c diff --git a/print-babel.c b/print-babel.c index 1a31f2a3..0bb2483a 100644 --- a/print-babel.c +++ b/print-babel.c @@ -352,6 +352,8 @@ babel_print_v2(netdissect_options *ndo, goto invalid; bodylen = EXTRACT_16BITS(cp + 2); ND_PRINT((ndo, " (%u)", bodylen)); + if (4U + bodylen > length) + goto invalid; /* Process the TLVs in the body */ i = 0;