X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/cfa9ab5f80dd9a1024e1a765bc0d24c57652b6bc..51a470b91366db5d36eb11feb24cfcdb2f7a5d3e:/print-rsvp.c diff --git a/print-rsvp.c b/print-rsvp.c index 86744e06..df9edc6c 100644 --- a/print-rsvp.c +++ b/print-rsvp.c @@ -519,7 +519,7 @@ rsvp_intserv_print(netdissect_options *ndo, uint32_t i; } bw; - ND_LCHECK_U(obj_tlen, 4); + ND_ICHECK_U(obj_tlen, <, 4); parameter_id = GET_U_1(tptr); parameter_length = GET_BE_U_2(tptr + 2)<<2; /* convert wordcount to bytecount */ @@ -529,7 +529,7 @@ rsvp_intserv_print(netdissect_options *ndo, parameter_length, GET_U_1(tptr + 1)); - ND_LCHECK_U(obj_tlen, parameter_length + 4); + ND_ICHECK_U(obj_tlen, <, parameter_length + 4); switch(parameter_id) { /* parameter_id */ case 4: @@ -1252,7 +1252,7 @@ rsvp_obj_print(netdissect_options *ndo, * each iteration subobj_len may happen to be a multiple of 1 * and test it and total_subobj_len respectively. */ - ND_LCHECK_U(total_subobj_len, 4); + ND_ICHECK_U(total_subobj_len, <, 4); subobj_len = GET_BE_U_2(obj_tptr); subobj_type = (GET_BE_U_2(obj_tptr + 2))>>8; af = (GET_BE_U_2(obj_tptr + 2))&0x00FF;