diff --git a/src/payload.c b/src/payload.c index 0221929b9..457541189 100644 --- a/src/payload.c +++ b/src/payload.c @@ -1455,6 +1455,8 @@ smp_fetch_distcc_param(const struct arg *arg_p, struct sample *smp, const char * return 1; } } + if (body > ci_data(chn) - ofs) + goto no_match; ofs += body; } @@ -1547,6 +1549,8 @@ smp_fetch_distcc_body(const struct arg *arg_p, struct sample *smp, const char *k return 1; } } + if (body > ci_data(chn) - ofs) + goto no_match; ofs += body; }